X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fmain.c;h=cd6429307bb559d59460af84d9e3221cbc71ea75;hb=4f6105d3df2cbf07bccd7de156693aab7e71bc31;hp=01d6c318a8a9c896e3294767435f6eb2c840a11f;hpb=0a71e82d1e6ca31f6e00a5b22ede0ccdc9913c35;p=evince.git diff --git a/shell/main.c b/shell/main.c index 01d6c318..cd642930 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 @@ -318,6 +319,7 @@ main (int argc, char *argv[]) bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); textdomain(GETTEXT_PACKAGE); g_option_context_add_main_entries (context, goption_options, GETTEXT_PACKAGE); + g_option_context_set_translation_domain(context, GETTEXT_PACKAGE); #else g_option_context_add_main_entries (context, goption_options, NULL); #endif @@ -339,6 +341,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 +384,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 ();