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 <ghosler redhat com> 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



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