[evince/gnome3-style] shell: Disable CTRL+F accel when find is not available



commit 19c0d128dce61e821b20b3e392b5fbd304bc4f59
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 0317248..f8e2ef6 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -464,6 +464,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);
 
@@ -581,6 +582,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]