How to attach Gtk::Menu to Gtk::Widget
- by krokoziabla
Gtk::Menu has
void Gtk::Menu::attach_to_widget(Widget& attach_widget,
GtkMenuDetachFunc detacher)
void Gtk::Menu::attach_to_widget (Widget& attach_widget)
wrapper methods for
void gtk_menu_attach_to_widget(GtkMenu *menu,
GtkWidget *attach_widget,
GtkMenuDetachFunc detacher)
But why are they protected?
If I want to make a pop-up menu on a widget, how, then, can I get access to it from the menu's activate call-back if not via these methods?