[Xfce4-commits] <thunar:nick/fixes-for-master> Force refresh of view after new_files callback.
Nick Schermer
noreply at xfce.org
Tue Dec 15 12:24:02 CET 2009
Updating branch refs/heads/nick/fixes-for-master
to 764212cfa1147d190955351c3ef464c6a5bfdfa9 (commit)
from bfaa2cead3bad1bcf151d61f553958ca1ca545e2 (commit)
commit 764212cfa1147d190955351c3ef464c6a5bfdfa9
Author: Nick Schermer <nick at xfce.org>
Date: Tue Dec 15 12:06:02 2009 +0100
Force refresh of view after new_files callback.
This makes the interface feel responsive when the user does
clipboard actions or creating new files/folders.
One remaining point is pasting files. Problem with this is
that the changed signal of the clipboard manager is emitted
(because of gtk_clipboard_clear) before the new_files
closure is triggered, which invalids the closure in
thunar_standard_view_selection_changed().
thunar/thunar-standard-view.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/thunar/thunar-standard-view.c b/thunar/thunar-standard-view.c
index 83139fc..b7362f9 100644
--- a/thunar/thunar-standard-view.c
+++ b/thunar/thunar-standard-view.c
@@ -2321,6 +2321,9 @@ thunar_standard_view_new_files (ThunarStandardView *standard_view,
/* grab the focus to the view widget */
gtk_widget_grab_focus (GTK_BIN (standard_view)->child);
}
+
+ /* manually reload the folder to avoid a delay */
+ thunar_standard_view_reload (THUNAR_VIEW (standard_view));
}
}
More information about the Xfce4-commits
mailing list