Re: [gtk-list] Sub menus



>  Anyone have any ideas on how to create a submenu off of a menu.  I got
>  the litle arrow to indicate that I have a submenu, but nothing shows up.
>  Thanks in advance.

Try this:

    GtkMenuItem *menu_item;
    GtkMenu *submenu;

    ... build menu_item and submenu ...

    gtk_menu_item_set_submenu (menu_item, GTK_WIDGET (submenu));

  Federico



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]