Reputation: 2181
I'm making an app using GTKMM and I want to know how to catch the right click signal from a Gtk::Table ?
And also how to catch if the Mouse is over a Gtk::Table ?
Upvotes: 1
Views: 1908
Reputation: 2181
Ok I figured out the solution. I was able to capute the right click by overiding the button press event :
virtual bool on_button_press_event(GdkEventButton* event);
Upvotes: -2
Reputation: 399881
All GTK+ widgets have the button-press-event and focus-in-event events. You can use the latter, in combination with its complement (focus-out-event) to track if the mouse is inside the widget.
Upvotes: 3