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 ?
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.
わかりました、私は解決策を見つけました。ボタンを押すイベントを上書きすることで、右クリックをキャプチャすることができました:
virtual bool on_button_press_event(GdkEventButton* event);