Re: how to insert a menu_item into the middle of a menu list ?
- From: John Coppens <john jcoppens com>
- To: Gregory Hosler <ghosler redhat com>
- Cc: 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 15:09:39 -0200
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]