After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 75748 - Widgets in POPUP windows don't get focus
Widgets in POPUP windows don't get focus
Status: RESOLVED FIXED
Product: libgnomeui
Classification: Deprecated
Component: general
unspecified
Other other
: Normal normal
: 2.0.0
Assigned To: Anders Carlsson
Anders Carlsson
Depends on:
Blocks:
 
 
Reported: 2002-03-21 13:36 UTC by Richard Hult
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Richard Hult 2002-03-21 13:36:24 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?)
Comment 1 Owen Taylor 2002-03-21 17:00:53 UTC
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.
Comment 2 Owen Taylor 2002-03-21 21:59:54 UTC
See:

http://mail.gnome.org/archives/gnome-libs-devel/2002-March/msg00026.html

for a gnome-date-edit patch.
Comment 3 Anders Carlsson 2002-03-29 22:43:55 UTC
Fixed in CVS