GNOME Bugzilla – Bug 75748
Widgets in POPUP windows don't get focus
Last modified: 2004-12-22 21:47:04 UTC
I'm not sure this is a GTK+ bug, but here goes: When putting a widget in a GTK_WINDOW_POPUP window, the widget can't get focus, nor its children. E.g. the GtkCalendar in GnomeDateEdit is broken wrt keynav, since the days don't get focused. Also when putting buttons in a popup, they can't get focus. This might be deliberate though? (if so, any idea how to fix GnomeDateEdit?)
I suspect the window doesn't have X focus. Anything doing a popup and wanting keynav in it probably needs to do a gdk_keyboard_grab() on the popup for the duration of the popup. I believe if you grab the keyboard to the window, the widgets in it will properly display as focused, though I haven't tested this.
See: http://mail.gnome.org/archives/gnome-libs-devel/2002-March/msg00026.html for a gnome-date-edit patch.
Fixed in CVS