From: Marco Pesenti Gritti Date: Thu, 27 Jan 2005 19:17:36 +0000 (+0000) Subject: Fix inverted up/down buttons X-Git-Tag: EVINCE_0_1_3~28 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=f2843b1912b5d44c20e4169d312e965e4ff844f2;p=evince.git Fix inverted up/down buttons 2005-01-27 Marco Pesenti Gritti * shell/ev-window.c: (update_action_sensitivity): Fix inverted up/down buttons --- diff --git a/ChangeLog b/ChangeLog index 0a7ea8fd..b3c73476 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-01-27 Marco Pesenti Gritti + + * shell/ev-window.c: (update_action_sensitivity): + + Fix inverted up/down buttons + 2005-01-27 Martin Kretzschmar * shell/ev-sidebar-thumbnails.c diff --git a/shell/ev-window.c b/shell/ev-window.c index 407ce28b..ef3dd623 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -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"), "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"), "Page_Up", + { "GoPageUp", GTK_STOCK_GO_UP, N_("_Page Up"), "Page_Up", N_("Go to the previous page"), G_CALLBACK (ev_window_cmd_go_page_up) }, - { "GoPageUp", GTK_STOCK_GO_DOWN, N_("_Page Down"), "Page_Down", + { "GoPageDown", GTK_STOCK_GO_DOWN, N_("_Page Down"), "Page_Down", N_("Go to the next page"), G_CALLBACK (ev_window_cmd_go_page_down) }, { "GoFirstPage", GTK_STOCK_GOTO_FIRST, N_("_First Page"), "Home",