Re: Key presses
- From: Andrei Zmievski <andrei ispi net>
- To: Jean-Christophe Berthon <jean-christophe berthon cgey com>
- Cc: Bach Ngo <bachn LESTERELECTRICAL com>, gtk-list gnome org
- Subject: Re: Key presses
- Date: Tue, 31 Jul 2001 09:52:19 -0500
On Tue, 31 Jul 2001, Jean-Christophe Berthon wrote:
> Maybe try to use the key_press event on the gtk widget that is involved.
> something like :
>   gtk_signal_connect (GTK_OBJECT (window), "key_press_event",
>                       GTK_SIGNAL_FUNC (on_window_key_press_event),
>                       NULL);
> where on_window_key_press is a function with this prototype :
> gboolean
> on_window_key_press_event           (GtkWidget       *widget,
>                                         GdkEventKey     *event,
>                                         gpointer         user_data);
> 
Right, that will do it for a specific widget. Is there a way to achieve
the same thing for an entire app, independent of which widget has the
focus?
-Andrei
Complexity in the mind is not caused by learning;
learning is caused by complexity in the mind.
                                 -- Steven Pinker
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]