diff options
-rw-r--r-- | data/evince-ui.xml | 2 | ||||
-rw-r--r-- | shell/ev-window.c | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/data/evince-ui.xml b/data/evince-ui.xml index b3723ff..f2e6c32 100644 --- a/data/evince-ui.xml +++ b/data/evince-ui.xml @@ -71,5 +71,7 @@ <accelerator name="ShiftSpaceAccel" action="ShiftSpace"/> <accelerator name="ShiftBackSpaceAccel" action="ShiftBackSpace"/> <accelerator name="FocusPageSelectorAccel" action="FocusPageSelector"/> + <accelerator name="PlusAccel" action="Plus"/> + <accelerator name="MinusAccel" action="Minus"/> </ui> diff --git a/shell/ev-window.c b/shell/ev-window.c index 2a37834..761599e 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -2419,6 +2419,12 @@ static const GtkActionEntry entries[] = { { "ShiftBackSpace", NULL, "", "<shift>BackSpace", N_("Scroll one page forward"), G_CALLBACK (ev_window_cmd_scroll_forward) }, + { "Plus", GTK_STOCK_ZOOM_IN, NULL, "plus", + N_("Enlarge the document"), + G_CALLBACK (ev_window_cmd_view_zoom_in) }, + { "Minus", GTK_STOCK_ZOOM_OUT, NULL, "minus", + N_("Shrink the document"), + G_CALLBACK (ev_window_cmd_view_zoom_out) }, { "FocusPageSelector", NULL, "", "<control>l", N_("Focus the page selector"), G_CALLBACK (ev_window_cmd_focus_page_selector) } @@ -2660,6 +2666,9 @@ set_view_actions_sensitivity (EvWindow *window, gboolean sensitive) set_action_sensitive (window, "ShiftSpace", sensitive); set_action_sensitive (window, "BackSpace", sensitive); set_action_sensitive (window, "ShiftBackSpace", sensitive); + set_action_sensitive (window, "Slash", sensitive); + set_action_sensitive (window, "Plus", sensitive); + set_action_sensitive (window, "Minus", sensitive); } } |