[maemo-developers] Labels and right click / tap_and_hold pop up menus in gtk/gtkmm
From: Simon Budig simon at budig.deDate: Fri Jul 11 01:18:56 EEST 2008
- Previous message: Labels and right click / tap_and_hold pop up menus in gtk/gtkmm
- Next message: Labels and right click / tap_and_hold pop up menus in gtk/gtkmm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
David Greaves (david at dgreaves.com) wrote: > So this code snippet works when desc_b is a Gtk::Button > > GtkWidgetTapAndHoldFlags f; > gtk_widget_tap_and_hold_setup( > (GtkWidget*)(desc_b.gobj()), > (GtkWidget*)(pMenu->gobj()), NULL, f); > > But I want to use a Gtk::Label - and that doesn't work. > This, I think, is because a Label doesn't have a Gdk::Window for X events. OK. > > So I tried the code snippet above with desc_b as an HBox and packed my label in > that. No joy. I'm guessing that the HBox isn't listening to signals - how do I > proceed - any ideas? A GtkHBox also does not have its own GdkWindow. Try something like the GtkEventBox. Hope this helps, Simon -- simon at budig.de http://simon.budig.de/
- Previous message: Labels and right click / tap_and_hold pop up menus in gtk/gtkmm
- Next message: Labels and right click / tap_and_hold pop up menus in gtk/gtkmm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]