Re: catching messages
- From: Diego Zuccato <diego otello alma unibo it>
- To: martyn imendio com, gtk-list <gtk-list gnome org>
- Cc:
- Subject: Re: catching messages
- Date: Tue, 10 Jan 2006 11:15:32 +0100
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]