GNOME Bugzilla – Bug 449262
Escape key doesn't work in Power Management Preferences
Last modified: 2009-03-04 15:24:50 UTC
[ forwarded from http://bugs.debian.org/429395 by Olaf van der Spek The Escape key doesn't work in the Power Management Preferences window, while this is the case for other capplets.
Any idea how to fix this?
GtkDialog achieves this with the GtkBinding API: binding_set = gtk_binding_set_by_class (class); gtk_binding_entry_add_signal (binding_set, GDK_Escape, 0, "close", 0); For GpmPrefs that would be the "action-close" signal, I suppose. Of course the clean way to do would be to make g-p-preferences directly use GtkDialog :)
(In reply to comment #2) > GtkDialog achieves this with the GtkBinding API: > > binding_set = gtk_binding_set_by_class (class); > gtk_binding_entry_add_signal (binding_set, GDK_Escape, 0, > "close", 0); Hmm. I can't get this to work: Gtk-CRITICAL **: gtk_binding_set_by_class: assertion `GTK_IS_OBJECT_CLASS (class)' failed > For GpmPrefs that would be the "action-close" signal, I suppose. Yes, agree. > Of course the clean way to do would be to make g-p-preferences directly use > GtkDialog :) Sure, I'm open for this if this is the long term plan. Patches (or example code) gladly accepted. Thanks. Richard,
Created attachment 121720 [details] [review] Enable Escape key Did this a bit different. Works nonetheless.
Michael, can you apply that please.
The problem is, I do not have a SVN account. Sorry for the delay, but I didn't understand you the first time I read your comment, I thought you mean some other gpm developer named Michael. :)
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.