Manual addition to gtk item factory menu.



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]