Re: catching messages

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

 



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.
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux