----- Original Message ---- From: John Coppens <[EMAIL PROTECTED]> To: Gregory Hosler <[EMAIL PROTECTED]> Cc: gtk-app-devel-list@gnome.org Sent: Sunday, January 27, 2008 12:09:39 PM Subject: Re: how to insert a menu_item into the middle of a menu list ?
On Sun, 27 Jan 2008 22:42:47 +0800 Gregory Hosler <[EMAIL PROTECTED]> wrote: > any thoughts or suggestions ? > Sorry about the previous message, Greg... I was writing from memory, and seems memory didn't work as it should've... The GList you obtain from _get_children is newly allocated so you can't change anything there. But the MenuBar and Menu are both derived from MenuShell, which _does_ provide with several methods to manipulate items in the list, including a gtk_menu_shell_insert to insert new items at a certain position. John ---------------- GtkUiManager is a lot easier to manage menus with, and will do what you want a lot easier and better, and it is also easier to undo. ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list