-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 "Hubert Sokolowski" <[EMAIL PROTECTED]> writes:
>> Dnia 25-02-2005, piÄ o godzinie 12:22 +0100, Hubert Sokolowski napisaÅ: >>> I need to execute my function when Left arrow key was pressed in >>> GtkEntry. >>> I can add accelerator for GtkEntry widget that can emit some signal. But >>> I >>> don't want to emit a signal, just run my function. how to do that? >> >> Emit a signal and connect your function as handler to it :) > good idea, but which signal? I know I can create a new one with > g_signal_new but I am looking for a simpler way. Have you tried the "key-press-event" signal emitted by GtkWidget? If the key (event->key.keyval) is GDK_Left or GDK_KP_Left, do your stuff and return TRUE, else return FALSE. Regards, Roger - -- Roger Leigh Printing on GNU/Linux? http://gimp-print.sourceforge.net/ Debian GNU/Linux http://www.debian.org/ GPG Public Key: 0x25BFB848. Please sign and encrypt your mail. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/> iD8DBQFCH4p7VcFcaSW/uEgRAjKRAJ9xJFroU+CfisPDxQIRD4apzs5CoACfbsm3 1Cve1+7soLlL+PjpsjsJNXM= =zMcY -----END PGP SIGNATURE----- _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list