GNOME Bugzilla – Bug 561114
Escape should close/cancel focused toplevel dialog
Last modified: 2008-11-17 13:48:01 UTC
Hi, gnome-power-manager's GUIs don't usually bind the Escape key to close dialogs. Maybe it is intentional, maybe not, but please consider applying the patch I'm attaching to do that. As an added bit of polish I've made the patch in a way that the close/cancel button in question will give visual feedback that its action is being activated. I'm actually thinking of adding this patch to all GNOME modules and to GTK+ itself so any comments on this first version are very welcome.
Created attachment 122821 [details] [review] activate cancel/close button on escape
2008-11-17 Richard Hughes <richard@hughsie.com> * data/gpm-inhibit-test.glade: * data/gpm-prefs.glade: * data/gpm-statistics-old.glade: * data/gpm-statistics.glade: * src/gpm-prefs-core.c: (gpm_prefs_activate_window), (gpm_prefs_init): * src/gpm-statistics-core.c: (gpm_statistics_activate_window), (gpm_statistics_init): * src/gpm-statistics.c: (gpm_gnome_activated_cb), (main): Change the dialog windows to be a GtkDialog, not a GtkWindow. Fixes #561114