[evince] [previewer] Fix keybindings in previewer window
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] [previewer] Fix keybindings in previewer window
- Date: Wed, 31 Mar 2010 14:36:16 +0000 (UTC)
commit 29e2d2c5e24bb6925b488233b22cc78aed6860e2
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Wed Mar 31 14:54:11 2010 +0200
[previewer] Fix keybindings in previewer window
See bug #612972.
previewer/ev-previewer-window.c | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/previewer/ev-previewer-window.c b/previewer/ev-previewer-window.c
index fd2fe37..2c884f6 100644
--- a/previewer/ev-previewer-window.c
+++ b/previewer/ev-previewer-window.c
@@ -319,6 +319,18 @@ ev_previewer_window_set_document (EvPreviewerWindow *window,
}
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)
{
EvPreviewerWindow *window = EV_PREVIEWER_WINDOW (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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]