[evince] Make history buttons insensitive when searching



commit 7005d191855cd4c62b7a807d71a16dc58e6fde4c
Author: Anuj Khare <khareanuj18 gmail com>
Date:   Sat Feb 22 04:28:04 2014 +0530

    Make history buttons insensitive when searching
    
    Change sensitivity in find bar open/close functions instead of with
    page-change to prevent history buttons from becoming insensitive every
    time a back/forward history button is clicked (since history freezes).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724549

 shell/ev-window.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 2137188..8a01ab9 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -557,9 +557,6 @@ ev_window_update_actions_sensitivity (EvWindow *ev_window)
                ev_window_set_action_sensitive (ev_window, "GoToPage", FALSE);
        }
 
-       ev_window_set_action_sensitive (ev_window, "History",
-                                       !ev_history_is_frozen (ev_window->priv->history));
-
        ev_window_set_action_sensitive (ev_window, "F7",
                                        has_pages &&
                                        ev_view_supports_caret_navigation (view) &&
@@ -5601,6 +5598,8 @@ ev_window_show_find_bar (EvWindow *ev_window,
 
        if (restart && ev_window->priv->find_job)
                ev_window_find_restart (ev_window);
+
+       ev_window_set_action_sensitive (ev_window, "History", FALSE);
 }
 
 static void
@@ -5621,6 +5620,8 @@ ev_window_close_find_bar (EvWindow *ev_window)
        update_toggle_find_action (ev_window, FALSE);
 
        ev_history_thaw (ev_window->priv->history);
+
+       ev_window_set_action_sensitive (ev_window, "History", TRUE);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]