Commit 29e2d2c5 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos

[previewer] Fix keybindings in previewer window

See bug #612972.
parent 891b62bd
......@@ -318,6 +318,18 @@ ev_previewer_window_set_document (EvPreviewerWindow *window,
gtk_action_group_set_sensitive (window->action_group, TRUE);
static void
ev_previewer_window_connect_action_accelerators (EvPreviewerWindow *window)
GList *actions;
gtk_ui_manager_ensure_update (window->ui_manager);
actions = gtk_action_group_list_actions (window->action_group);
g_list_foreach (actions, (GFunc)gtk_action_connect_accelerator, NULL);
g_list_free (actions);
static void
ev_previewer_window_dispose (GObject *object)
......@@ -478,6 +490,11 @@ ev_previewer_window_constructor (GType type,
g_free (ui_path);
g_free (datadir);
/* GTKUIManager connects actions accels only for menu items,
* but not for tool items. See bug #612972.
ev_previewer_window_connect_action_accelerators (window);
view_sizing_mode_changed (window->model, NULL, window);
vbox = gtk_vbox_new (FALSE, 0);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment