big bug in GTK-2.4.0



There is a big bug in in GTK-2.4.0. Please have a look at 
the simple example program at:

http://rnvs.informatik.tu-chemnitz.de/GTKBUG/gtkbug.html

The GtkDrawingArea does not get any keyboard event if it
is inside an GtkScrolledWindow and this GtkScrolledWindow
in turn is in a GtkVBox together with a GtkToolbar. 

The example program shows an (at first invisible) GtkToolbar
and a GtkScrolledWindow with an GtkDrawingArea as child.
If you press any key the callback function on_key_press
ouputs "on_key_press".

As soon as you uncomment the line

//#define IF_YOU_OMIT_THIS_LINE_KEYBOARD_FOCUS_WORKS 

an element is added to the toolbar. From this moment on the
key press event does no longer arrive the GtkDrawingArea.
This didn't happen in previous Gtk versions.

Note! Also gtk_widget_add_events or gtk_widget_grab_focus
doesn't help!

-- 
J.Anders, Chemnitz, GERMANY (ja informatik tu-chemnitz de)



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