[evince] shell: Disable CTRL+F accel when find is not available



commit 50040f779f743406a7e910dda97142aef59fdf58
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sat Dec 29 13:09:18 2012 +0100

    shell: Disable CTRL+F accel when find is not available
    
    https://bugzilla.gnome.org/show_bug.cgi?id=689926

 shell/ev-window.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index bd03112..a01ab83 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -460,6 +460,7 @@ ev_window_setup_action_sensitivity (EvWindow *ev_window)
 	ev_window_set_action_sensitive (ev_window, "EditSelectAll", has_pages && can_get_text);
 	ev_window_set_action_sensitive (ev_window, "EditFind", can_find);
 	ev_window_set_action_sensitive (ev_window, "Slash", can_find);
+	ev_window_set_action_sensitive (ev_window, "CtrlF", can_find);
 	ev_window_set_action_sensitive (ev_window, "EditRotateLeft", has_pages);
 	ev_window_set_action_sensitive (ev_window, "EditRotateRight", has_pages);
 
@@ -577,6 +578,7 @@ ev_window_set_view_accels_sensitivity (EvWindow *window, gboolean sensitive)
 
 	can_find = window->priv->document && EV_IS_DOCUMENT_FIND (window->priv->document);
 	ev_window_set_action_sensitive (window, "Slash", sensitive && can_find);
+	ev_window_set_action_sensitive (window, "CtrlF", sensitive && can_find);
 }
 
 static void



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