https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget-button-press-event
The “button-press-event”
signal
gboolean user_function (GtkWidget *widget, GdkEvent *event, gpointer user_data)
The ::button-press-event signal will be emitted when a button(typically from a mouse) is pressed.
To receive this signal, the GdkWindow associated to thewidget needs to enable the GDK_BUTTON_PRESS_MASK mask.
This signal will be sent to the grab widget if there is one.
How to Implement a button-press-event on GtkTable
Searching the web for answers dosen't get me through my problem: I wan't my GtkTable to throw an event, if i click one cell. Since there is no click event, accept for GtkButton's, i wanted to implement a GDK_BUTTON_PRESS_MASK and GDK_BUTTON_RELEASE_MASK to catch the position of the mouse on the Table during click. Works great with GtkDrawingArea! Tryed the snipet bellow, but nothing happend, maybe someone can give me a clue :) little sample:
|
|||||
|
You don't receive events because
|