[gtk+/gtk-2-24] filechooserbutton: In tests, sleep after opening the dialog



commit 2cc67fc1091805d64c18a8afda1a19e813301dbc
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Feb 20 18:52:23 2013 -0600

    filechooserbutton: In tests, sleep after opening the dialog
    
    This may ensure that the dialog is actually done initializing.  We need to kill this
    sleeping business and really use signals, sigh...
    
    Signed-off-by: Federico Mena Quintero <federico gnome org>

 gtk/tests/filechooser.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/tests/filechooser.c b/gtk/tests/filechooser.c
index 35da0fa..c354c80 100644
--- a/gtk/tests/filechooser.c
+++ b/gtk/tests/filechooser.c
@@ -419,7 +419,7 @@ test_file_chooser_button (gconstpointer data)
          gtk_button_clicked (GTK_BUTTON (children->data));
          g_list_free (children);
 
-         wait_for_idle ();
+         sleep_in_main_loop ();
 
          /* Give me the internal dialog, damnit */
          fc_dialog = g_object_get_qdata (G_OBJECT (fc_button), delegate_get_quark ());


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