[nautilus/gnome-3-20] list-view: unselect all items before selecting a new one



commit b33785a3e03cd9d9f7604bc1e392803a8c70a44d
Author: Carlos Soriano <csoriano gnome org>
Date:   Thu Mar 3 11:06:45 2016 +0100

    list-view: unselect all items before selecting a new one
    
    It shouldn't happen, but better to be correct here.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=762595

 src/nautilus-list-view.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index b6af6ed..de32a54 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -2467,6 +2467,7 @@ nautilus_list_view_select_first (NautilusFilesView *view)
                return;
        }
        selection = gtk_tree_view_get_selection (NAUTILUS_LIST_VIEW (view)->details->tree_view);
+       gtk_tree_selection_unselect_all (selection);
        gtk_tree_selection_select_iter (selection, &iter);
 }
 


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