[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk-app-devel
Subject: Manual addition to gtk item factory menu.
From: Daniel Pekelharing <legendstar () gmail ! com>
Date: 2005-04-29 17:29:33
Message-ID: 1114795773.25146.7.camel () AMD-2600
[Download RAW message or body]
Hi,
In my app I have built a main menu using GtkItemFactory, i.e. like this:
static GtkItemFactoryEntry main_menu_items[] = {
{"/_File", NULL, NULL, 0, "<Branch>", NULL},
{"/File/New", "N", menu, 50, "<StockItem>", GTK_STOCK_NEW},
{"/File/Open", "O", menu, 51, "<StockItem>", GTK_STOCK_OPEN},
...etc
What I want to know:
How do I add new menu items at runtime? For example I want to add a open
recent document menu.
Thanks
--
Daniel Pekelharing
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic