! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
escape doesn't close the settings dialog if an embedded dialog has focus
Status:
RESOLVED: INVALID
Product:
Xfce4-settings
Component:
Keyboard Settings

Comments

Description Maximilian Schleiss editbugs 2009-01-26 20:20:49 CET
The settings manager can be closed using the "escape" key. As soon as you open some settings dialog and give it focus, window manager settings for example, the escape key won't close the window anymore.
Comment 1 David Mohr 2009-01-29 01:04:17 CET
Ok, this is a bit of a wild guess, but if you look at gtkplug.c at http://svn.gnome.org/viewvc/gtk%2B/trunk/gtk/gtkplug.c?view=markup
you see:

753 	static gboolean
754 	gtk_plug_key_press_event (GtkWidget *widget,
755 	GdkEventKey *event)
756 	{
757 	if (GTK_WIDGET_TOPLEVEL (widget))
758 	    return GTK_WIDGET_CLASS (gtk_plug_parent_class)->key_press_event (widget, event);
759 	else
760 	return FALSE;
761 	} 

Maybe it's that as soon as the socket widget has focus, the key press is passed on to the plug, but the plug isn't the toplevel window, and so nothing happens?
Comment 2 Yves-Alexis Perez editbugs 2009-02-22 16:04:42 CET
Works for me in rc1. In 4.6.0 embbeded dialogs will be disabled anyway.
Comment 3 David Mohr 2009-02-22 16:15:34 CET
Corsac is right about 4.6.0 of course, but for the record: on my gentoo machine I could reproduce the bug, but on my Debian one it works as expected. Possibly related to gtk versions?

Debian: 2.12.12
Gentoo: 2.14.7
Comment 4 Yves-Alexis Perez editbugs 2009-02-22 16:52:43 CET
Hmhm, unlikely:

ii  libgtk2.0-0  2.14.7-2 The GTK+ graphical user interface library
Comment 5 Sean Davis editbugs 2015-01-31 19:11:44 CET
This still works with Ubuntu and GTK 2.24.25... how's this looking elsewhere?
Comment 6 Skunnyk editbugs 2020-05-25 23:14:08 CEST
Seems to works in gtk3 version. Closing old bugreports

Bug #4858

Reported by:
Maximilian Schleiss
Reported on: 2009-01-26
Last modified on: 2020-05-25

People

Assignee:
Jannis Pohlmann
CC List:
6 users

Version

Attachments

Additional information