Re: Key presses



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);



Best regards,
---
Jean-Christophe Berthon

Cap Gemini -- Ernst & Young
France
Skill Integration System -- Image Quality
Email: Jean-Christophe Berthon cgey com
Tel: (+33) 561 31 6639


----- Original Message -----
From: "Andrei Zmievski" <andrei ispi net>
To: "Bach Ngo" <bachn LESTERELECTRICAL com>
Cc: <gtk-list gnome org>
Sent: Tuesday, July 31, 2001 4:36 PM
Subject: Re: Key presses


> On Tue, 31 Jul 2001, Bach Ngo wrote:
> > Using gdk_input_add to listen to key presses.
> >
> > For example
> > //Monitoring I/O: keyboard
> >
> >
gdk_input_add(fd_kb,GDK_INPUT_READ,GTK_SIGNAL_FUNC(keyboard_input),text_entr
> > y[5]);
>
> Where does fd_kb come from?
>
> -Andrei
>
> Hacker: Any person who derives joy from
>         discovering ways to circumvent limitations.
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list





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