[evince] [shell] Update only Copy action sensitivity when selection changes



commit 8d0bc51eae0fb7fd91191889ab04f22049c45069
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Mon Jan 11 12:29:03 2010 +0100

    [shell] Update only Copy action sensitivity when selection changes

 shell/ev-window.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index a22b961..3714831 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -857,7 +857,8 @@ static void
 view_selection_changed_cb (EvView   *view,
 			   EvWindow *window)
 {
-	ev_window_update_actions (window);
+	ev_window_set_action_sensitive (window, "EditCopy",
+					ev_view_get_has_selection (view));
 }
 
 static void



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