From 81ddae351eef86f6499c6bd1223100b49ec4c80d Mon Sep 17 00:00:00 2001 From: Nick Schermer Date: Tue, 15 Dec 2009 12:06:02 +0100 Subject: [PATCH] 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(). Signed-off-by: Nick Schermer --- 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)); } } -- 1.6.5.6