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?
Asked
Active
Viewed 854 times
0
-
Are you trying to catch the click-event for the button or for the image? The left-click might be caught by the button and never propagated to the image, the right click probably just passed on. – balpha Jun 30 '09 at 18:27
-
There is no button -- the image is over the top of the blank space to the right of the tabs. – c4757p Jun 30 '09 at 18:42
1 Answers
0
Did you draw your image in a GtkEventBox
?

eduffy
- 39,140
- 13
- 95
- 92
-
The reason that I am manually drawing the image is because it needs to be on top of another widget. Is there an easy way to put an EventBox at a specific pixel location? – c4757p Jun 30 '09 at 18:43
-