Re: Key presses

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


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]