[gtk+] filechooserbutton: HACK: Set a reasonable size for the dialog in the tests' second iteration



commit f2d6def72eb9951d0c04bfc6fb6add0439c6f74f
Author: Federico Mena Quintero <federico gnome org>
Date:   Mon Mar 11 17:27:44 2013 -0600

    filechooserbutton: HACK: Set a reasonable size for the dialog in the tests' second iteration
    
    Something is causing the GtkFileChooserDialog to be resized really small on the second time it is run
    during each test for GtkFileChooserButton.  So as a temporary hack we set it to 500x500 pixels on
    the second run, so the size allocation code doesn't bomb on us.

 gtk/tests/filechooser.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/tests/filechooser.c b/gtk/tests/filechooser.c
index f2202be..1fdce20 100644
--- a/gtk/tests/filechooser.c
+++ b/gtk/tests/filechooser.c
@@ -590,6 +590,8 @@ test_file_chooser_button (gconstpointer data)
        {
          gtk_dialog_response (GTK_DIALOG (fc_dialog), setup->dialog_response);
          wait_for_idle ();
+
+         gtk_window_resize (GTK_WINDOW (fc_dialog), 500, 500);
        }
 
       if (setup->final_current_folder)


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