thunar-plugin right click menu



heyy all,

At the moment i am trying to make a thunar plugin, READ trying :P.
Well the thunar plugin also uses GTK, so i tried to make some
tutorials. But now i am stuck
add making a menu in the richt click menu.

when i try to use:
        GtkWidget* file_menu = gtk_menu_new ();
	gtk_container_add (GTK_CONTAINER (window), file_menu);
IN:
static GList*
foo_get_file_actions (ThunarxMenuProvider *provider, GtkWidget
*window, GList *files){...}

I get the error from thunar:
(lt-Thunar:8050): Gtk-WARNING **: Attempting to add a widget with type
GtkMenu to a container of type ThunarWindow, but the widget is already
inside a container of type GtkWindow, the GTK+ FAQ at
http://www.gtk.org/faq/ explains how to reparent a widget.

This doesn't seem to work, does anyone has some tips for me on how to
add a menu or a solution to this. 'Cause i don't seem to come out of
it.(reparenting the widget doesn't seem to help)

Thanks in advance,

-- 
Kees


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]