How to attach Gtk::Menu to Gtk::Widget
Posted
by
krokoziabla
on Stack Overflow
See other posts from Stack Overflow
or by krokoziabla
Published on 2012-11-11T16:57:11Z
Indexed on
2012/11/11
17:00 UTC
Read the original article
Hit count: 320
gtkmm
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?
© Stack Overflow or respective owner