summaryrefslogtreecommitdiff
path: root/src/nautilus-canvas-view.c
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2016-04-27 16:10:22 +0200
committerCarlos Soriano <csoriano@gnome.org>2016-04-27 23:29:23 +0200
commit0a0087126847a0005a829dba49a4b9ac2b414fa1 (patch)
treec4ffc2ae9dcc92b4cc38957f777773ccbdf22255 /src/nautilus-canvas-view.c
parent10b556e654e0e1cb89da3d0085397af23c5cd624 (diff)
downloadnautilus-0a0087126847a0005a829dba49a4b9ac2b414fa1.tar.gz
files-view: reveal file after renaming or creating
We want to reveal the file that was just renamed. In order to do that, we have to make sure the view has the icon and all changes were acknowledge, and only then, reveal the file. In this patch, we implement this creating a hash table that will hold any file that needs to be revealed when the view acknowledges it. Functions using this will be the renaming of files, the creation of folders, and the creation of folders with selection. https://bugzilla.gnome.org/show_bug.cgi?id=764137
Diffstat (limited to 'src/nautilus-canvas-view.c')
-rw-r--r--src/nautilus-canvas-view.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nautilus-canvas-view.c b/src/nautilus-canvas-view.c
index dcd491414..e41c55a26 100644
--- a/src/nautilus-canvas-view.c
+++ b/src/nautilus-canvas-view.c
@@ -1148,6 +1148,8 @@ nautilus_canvas_view_reveal_selection (NautilusFilesView *view)
/* Make sure at least one of the selected items is scrolled into view */
if (selection != NULL) {
+ /* Update the icon ordering to reveal the rigth selection */
+ nautilus_canvas_container_layout_now (get_canvas_container (NAUTILUS_CANVAS_VIEW (view)));
nautilus_canvas_container_reveal
(get_canvas_container (NAUTILUS_CANVAS_VIEW (view)),
selection->data);