]> www.fi.muni.cz Git - evince.git/commitdiff
Second part of commit, broken pipe somehow
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Sun, 22 May 2005 13:13:48 +0000 (13:13 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Sun, 22 May 2005 13:13:48 +0000 (13:13 +0000)
data/evince-ui.xml
shell/ev-window.c

index b3723fff9b39a630a8a3c845651ed54303b01ed7..f2e6c32cb6b63f83cafd36e4c4968da73f7fcbb2 100644 (file)
@@ -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>
index 2a3783476e71fd723fb4284997cc5cbf854efa2d..761599e1db4e2033bba0d9d8e548b97d7647eea9 100644 (file)
@@ -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);
        }
 }