[Thunar-dev] plugin-rightclickmenu
Kees Scherpenhuijzen
noik00 at gmail.com
Sun Apr 13 19:42:14 CEST 2008
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
More information about the Thunar-dev
mailing list