Why won't Gtk's button_press_event receive single left clicks?
-
21-08-2019 - |
Question
I am trying to set up an add-tab button in a Gtk::Notebook (gtkmm). I am doing this by drawing a pixmap to a calculated position -- that works just fine. However, when trying to receive events for it, I cannot pick up a single left click. Single middle and single right give both press and release events, and double left gives just a press event, but single left doesn't register anything. How can I properly receive events?
Solution
Did you draw your image in a GtkEventBox
?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow