logo       

plugin-rightclickmenu: msg#00001

desktop.xfce.thunar.devel

Subject: plugin-rightclickmenu

Goodday,

Using the tex-open-terminal and other plugins, i'm trying to make a plugin.
Now i'm trying to make an menu in the right-click-menu.
i've looked at the uca and multiple other plugins, but i saw there a
lot of code for a menu. Is there a basic, not many code lines to make
an start?

i've tried using: http://library.gnome.org/devel/gtk-tutorial/stable/x1699.html

/* Start from here with a menu */
item_factory = gtk_item_factory_new (GTK_TYPE_MENU, "<main>",NULL);
gtk_item_factory_create_items (item_factory, nmenu_items, menu_items, NULL);
menu = gtk_item_factory_get_widget (item_factory, "<main>");
actions = g_list_prepend (actions, menu);

But this is giving me many errors.

I'm sorry if this is a GTK question.
--
Kees


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise