summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2017-03-30 16:58:38 +0200
committerCarlos Soriano <csoriano@gnome.org>2017-04-22 17:16:54 +0200
commit4aee12bc8786a560c8adb88af7b37fb2b7f5cb32 (patch)
tree2bcd6412c80a3bf24cb2d6593281ac2728b5bf85
parentb31258e7a41a801d41d468d5fe0ce063e26fe4d8 (diff)
downloadnautilus-4aee12bc8786a560c8adb88af7b37fb2b7f5cb32.tar.gz
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
-rw-r--r--src/nautilus-files-view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index d37fffb33..4d084c07e 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