summaryrefslogtreecommitdiff
path: root/libnautilus-private
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2011-02-19 23:45:20 -0500
committerCosimo Cecchi <cosimoc@gnome.org>2011-02-19 23:45:20 -0500
commit763109bb17cd326195ff44951977243a6e6712d1 (patch)
treed8a4dfc6cecb0d89dfeb095b6f5013269a646a55 /libnautilus-private
parent01c61be847dbb30f7392794ad0fec6228e82904d (diff)
downloadnautilus-763109bb17cd326195ff44951977243a6e6712d1.tar.gz
file-operations: make sure not to show the dialog before calling _run()
This had no noticeable effect before, but with gnome-shell's modal dialog animation, it causes the dialog flickering before being picked by the WM.
Diffstat (limited to 'libnautilus-private')
-rw-r--r--libnautilus-private/nautilus-file-operations.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libnautilus-private/nautilus-file-operations.c b/libnautilus-private/nautilus-file-operations.c
index 074ef75ba..8b16c0a9c 100644
--- a/libnautilus-private/nautilus-file-operations.c
+++ b/libnautilus-private/nautilus-file-operations.c
@@ -1081,11 +1081,9 @@ do_run_simple_dialog (gpointer _data)
}
/* Run it. */
- gtk_widget_show (dialog);
result = gtk_dialog_run (GTK_DIALOG (dialog));
while ((result == GTK_RESPONSE_NONE || result == GTK_RESPONSE_DELETE_EVENT) && data->ignore_close_box) {
- gtk_widget_show (GTK_WIDGET (dialog));
result = gtk_dialog_run (GTK_DIALOG (dialog));
}