Re: how to insert a menu_item into the middle of a menu list ?
- From: Lance Dillon <riffraff169 yahoo com>
- To: gtk-app-devel-list gnome org
- Subject: Re: how to insert a menu_item into the middle of a menu list ?
- Date: Sun, 27 Jan 2008 11:54:54 -0800 (PST)
----- Original Message ----
From: John Coppens <john jcoppens com>
To: Gregory Hosler <ghosler redhat com>
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 <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
----------------
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]