]> www.fi.muni.cz Git - evince.git/commitdiff
Fix inverted up/down buttons
authorMarco Pesenti Gritti <marco@gnome.org>
Thu, 27 Jan 2005 19:17:36 +0000 (19:17 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Thu, 27 Jan 2005 19:17:36 +0000 (19:17 +0000)
2005-01-27  Marco Pesenti Gritti  <marco@gnome.org>

        * shell/ev-window.c: (update_action_sensitivity):

        Fix inverted up/down buttons

ChangeLog
shell/ev-window.c

index 0a7ea8fd6282d5a285f0b8f7138701f6210b38b6..b3c734761f1da417b5cc29e94afa6398c837a59d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-01-27  Marco Pesenti Gritti  <marco@gnome.org>
+
+       * shell/ev-window.c: (update_action_sensitivity):
+
+       Fix inverted up/down buttons
+
 2005-01-27  Martin Kretzschmar  <martink@gnome.org>
 
        * shell/ev-sidebar-thumbnails.c
index 407ce28b868e5f228f62b34cec2d00c01f889cee..ef3dd6237bd875efbd02826d76f276b8f97b836c 100644 (file)
@@ -168,14 +168,14 @@ update_action_sensitivity (EvWindow *ev_window)
                page = ev_view_get_page (EV_VIEW (ev_window->priv->view));
                n_pages = ev_document_get_n_pages (document);
 
-               set_action_sensitive (ev_window, "GoPageDown", page > 1);
-               set_action_sensitive (ev_window, "GoPageUp", page < n_pages);
+               set_action_sensitive (ev_window, "GoPageUp", page > 1);
+               set_action_sensitive (ev_window, "GoPageDown", page < n_pages);
                set_action_sensitive (ev_window, "GoFirstPage", page > 1);
                set_action_sensitive (ev_window, "GoLastPage", page < n_pages);
        } else {
                set_action_sensitive (ev_window, "GoFirstPage", FALSE);
-               set_action_sensitive (ev_window, "GoPageDown", FALSE);
                set_action_sensitive (ev_window, "GoPageUp", FALSE);
+               set_action_sensitive (ev_window, "GoPageDown", FALSE);
                set_action_sensitive (ev_window, "GoLastPage", FALSE);
        }
 
@@ -1504,10 +1504,10 @@ static GtkActionEntry entries[] = {
         { "GoForward", GTK_STOCK_GO_FORWARD, N_("Fo_rward"), "<mod1>Right",
           N_("Go to the page viewed before this one"),
           G_CALLBACK (ev_window_cmd_go_forward) },
-        { "GoPageDown", GTK_STOCK_GO_UP, N_("_Page Up"), "<control>Page_Up",
+        { "GoPageUp", GTK_STOCK_GO_UP, N_("_Page Up"), "<control>Page_Up",
           N_("Go to the previous page"),
           G_CALLBACK (ev_window_cmd_go_page_up) },
-        { "GoPageUp", GTK_STOCK_GO_DOWN, N_("_Page Down"), "<control>Page_Down",
+        { "GoPageDown", GTK_STOCK_GO_DOWN, N_("_Page Down"), "<control>Page_Down",
           N_("Go to the next page"),
           G_CALLBACK (ev_window_cmd_go_page_down) },
         { "GoFirstPage", GTK_STOCK_GOTO_FIRST, N_("_First Page"), "<control>Home",