From 20cef31934e4ad2c313a1f1ea76a0916c2f7bb81 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Sat, 12 May 2007 18:18:16 +0000 Subject: [PATCH] Sync keybindings manually when building without libgnome (#437925). 2007-05-12 Ross Burton * shell/main.c: Sync keybindings manually when building without libgnome (#437925). svn path=/trunk/; revision=2452 --- ChangeLog | 6 ++++++ shell/main.c | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index 843568b1..c9757ba8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-05-12 Ross Burton + + * shell/main.c: + Sync keybindings manually when building without libgnome + (#437925). + 2007-05-12 Ross Burton * shell/ev-window.c: diff --git a/shell/main.c b/shell/main.c index 01d6c318..c7005cfe 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 (); -- 2.43.5