Re: GTK+ 1.2 key press and release events



At 09:30 PM 3/24/2002 +0000, Ian Thompson-Bell wrote:
In Xlib, when you press and hold a key you get an initial keypress event, 
followed by more keypress events as the keyboard auto-repeats and when you 
finaly release it you get a keyrelease event.

In gtk+ 1.2 when I press and hold a key I get a keypress event immediately 
followed by a key press event.  When I release the key there is no 
corresponding keyrelease event..

How do I get gtk to to behave like Xlib?

I needed to add this (thanks to Havoc)

        gtk_widget_get_events (view.text) | GDK_KEY_RELEASE_MASK);
gtk_signal_connect (GTK_OBJECT (view.text), "key_release_event",
                            GTK_SIGNAL_FUNC(cb_text_key), NULL);



TIA

Ian
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

--------------------------------------------------------------------
--           Philip J. Bunce, Software Consultant
--     MIPS Assembly, Embedded Systems, PMON, UNIX, & C
--  Ph: 831-659-5684 Fax: 501-325-6812 http://www.carmel.com
--------------------------------------------------------------------





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