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).

Sorry, I forgot to add. There's another thing that makes me feel like it's
not really meant to be done that way. During my testing I hit a sanity check
that implied a menu item could only have one parent. That would mean that
it's impossible to popup the application menu without detaching it from the
application first...

All in all it looks like a hard & convoluted task. :)






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