Re: popup_menu Question



Hi everyone,

Is there a way to popup (as in popup menu) in GTK+ (C) the application menu (or the menubar)? I'm asking because it's really not practical for me to popup a custom menu as my menus are very dynamic.

gtk_menu_popup() takes any menu as parameter, so in theory should work if you pass your main menu in (never tried myself, though).

Well, unless I'm mistaken a menubar is containing only menu items and no menu,
at least I could not find one.
Both menubar and menu derivate from menushell yet poping the menubar fails
on GTK_IS_MENU assertion, the same happens when trying to popup a getsubmenu from an item, it seems the gtk_menu object is really special and not used in
a traditional menu.



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