GNOME Bugzilla – Bug 162902
Keyboard shortcuts are not saved
Last modified: 2006-04-27 21:19:28 UTC
Gconf-editor allows keybindings to be altered by hovering over a menu item and pressing a new keycombo. This works fine, but the new keyboard shortcuts are not loaded from/saved to a GTK accelerator map dump file, so they do not persist. Steps to reproduce (obvious, but anyway): 1. Make sure you have dynamic keybindings enabled 2. Open gconf-editor 3. Open the menu 4. Hover over a menu option 5. Press a new combo (eg. ctrl-r) 6. Close the menu 7. Press ctrl-r 8. See the expected result 9. Close gconf-editor 10. Open gconf-editor again 11. Notice that the newly created keybinding is reset to its default value
Please have a look at this issue again. (Ctrl-S to open a new window is really annoying). Thanks.
Hi, Enabled dynamic keybindings by adding gtk-can-change-accels=1 to ~/.gtkrc-2.0 In GNOME 2.10 under Ubuntu hoary-preview this behaviour still remains. The keybinding is not permanently fixed to the new version. This was also the case with the System Log Viewer. I've never heard of this feature before so I don't know what the expected behabious is supposed to be. A search on google doesn't turn up any suitable information or a standard. Sorry - I can't confirm it as a bug without knowing what it's supposed to do! Thanks, Steve
This bug is still annoying ;) The accelerator map should be saved to disc before quitting the application. Please read http://developer.gnome.org/doc/API/2.0/gtk/gtk-Accelerator-Maps.html#gtk-accel-map-save for information on how to fix this usability bug.
Created attachment 57508 [details] [review] Patch to fix this bug Couldn't be easier...
Comment on attachment 57508 [details] [review] Patch to fix this bug Index: main.c =================================================================== RCS file: /cvs/gnome/gconf-editor/src/main.c,v retrieving revision 1.12 diff -p -u -b -B -r1.12 main.c --- main.c 5 Nov 2004 13:45:52 -0000 1.12 +++ main.c 17 Jan 2006 02:18:05 -0000 @@ -95,6 +95,8 @@ main (gint argc, gchar **argv) poptFreeContext (pctx); gtk_main (); + + gnome_accelerators_sync(); return 0; }
Created attachment 57510 [details] [review] Properly formatted fix for this bug Sorry -- forgot that I had deleted my .cvsrc. It's the same patch, just this time with context.
Can someone commit this patch? Thanks.
I've committed this to CVS, since this module seems basically unmaintained. Please let me know if you don't like this. 2006-04-27 Wouter Bolsterlee <uws+gnome@xs4all.nl> * src/main.c: Call gnome_accelerators_sync() to save the keyboard shortcuts on exit. Fixes bug #162902.