Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/main.c')
-rw-r--r--shell/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/main.c b/shell/main.c
index 01d6c31..c7005cf 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -307,6 +307,7 @@ main (int argc, char *argv[])
#if WITH_GNOME
GnomeProgram *program;
#else
+ char *accel_filename;
GError *error = NULL;
#endif
@@ -339,6 +340,9 @@ main (int argc, char *argv[])
g_option_context_free (context);
gnome_vfs_init ();
+
+ accel_filename = g_build_filename (ev_dot_dir (), "accels", NULL);
+ gtk_accel_map_load (accel_filename);
#endif
args = arguments_parse ();
@@ -379,6 +383,9 @@ main (int argc, char *argv[])
#if WITH_GNOME
gnome_accelerators_sync ();
+#else
+ gtk_accel_map_save (accel_filename);
+ g_free (accel_filename);
#endif
ev_file_helpers_shutdown ();