Re: when and where to destroy "popup menu"?



Zhang Yang wrote:
Hello.
I have created a popup menu in my function(list below). But I have a
question "when and where to destroy it?".

I see in your sample below you are not connecting the popup_menu signal, which is the one you want for context menus. You don't need to destroy it, Gtk does that for you, after dispatching the proper event from the selected menu item.

--
Guy Rouillier



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