Manual addition to gtk item factory menu.
- From: Daniel Pekelharing <legendstar gmail com>
- To: gtk-app-devel-list Mailing-Lists <gtk-app-devel-list gnome org>
- Subject: Manual addition to gtk item factory menu.
- Date: Fri, 29 Apr 2005 19:29:33 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]