GTK MenuShell Nested Menu's



I'm trying to nest a menu using menu_shell,

GtkWidget *tray_menu;
GtkWidget *child_menu;
tray_menu = gtk_menu_new ();
child_menu = gtk_menu_new ();
gtk_menu_shell_append(GTK_MENU_SHELL(tray_menu), child_menu);

but i get an error:
Gtk-CRITICAL **: gtk_menu_shell_insert: assertion `GTK_IS_MENU_ITEM
(child)' failed

so i guess my question is, how do i set one menu to be another menu's child?

-- 
Thanks
Kevin Anthony
www.NoSideRacing.com


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