[nautilus] files-view: Reveal file in an idle for the flow view



commit 13332ea230d72ed5acac6508c54ed5908f419271
Author: Carlos Soriano <csoriano gnome org>
Date:   Thu Mar 30 16:58:38 2017 +0200

    files-view: Reveal file in an idle for the flow view
    
    Items are not allocated at that time yet, so it needs some time to be
    able to calculate the correct allocation of the item, and therefore the
    correct adjustment for the scrolled window.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=780380

 src/nautilus-files-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index d37fffb..4d084c0 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -3593,7 +3593,7 @@ done_loading (NautilusFilesView *view,
 
         if (do_reveal)
         {
-            if (NAUTILUS_IS_LIST_VIEW (view))
+            if (NAUTILUS_IS_LIST_VIEW (view) || NAUTILUS_IS_VIEW_ICON_CONTROLLER (view))
             {
                 /* HACK: We should be able to directly call reveal_selection here,
                  * but at this point the GtkTreeView hasn't allocated the new nodes


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