[nautilus] file-operations: make sure not to show the dialog before calling _run()



commit 763109bb17cd326195ff44951977243a6e6712d1
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Feb 19 23:45:20 2011 -0500

    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.

 libnautilus-private/nautilus-file-operations.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file-operations.c b/libnautilus-private/nautilus-file-operations.c
index 074ef75..8b16c0a 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));
 	}
 	



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]