Re: catching messages



Martyn Russell wrote:
> What key press?
> You want to use the GtkWidget signal "key-press-event" and look at the
> GdkEventKey that comes back with that. The keyval should be one of the
> values in gtk/gdk/gdkkeysyms.h (for example GDK_Escape).
Exactly ESC.

What I did is (since gtk_signal_connect is deprecated):
g_signal_connect(G_OBJECT(combo), "key_press_event",
G_CALLBACK(reset_combo), GINT_TO_POINTER(presel));

But reset_combo NEVER gets called :(

Any hint?

BYtE,
 Diego.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]