]> www.fi.muni.cz Git - evince.git/commitdiff
[shell] Update only Copy action sensitivity when selection changes
authorCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 11 Jan 2010 11:29:03 +0000 (12:29 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 11 Jan 2010 11:29:03 +0000 (12:29 +0100)
shell/ev-window.c

index a22b961f5099fe485eb8102be2397d1a053eb7dd..37148318272a51244faacdac5737b2835550edf0 100644 (file)
@@ -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