]> Pileus Git - ~andy/gtk/commitdiff
filechooserbutton: HACK: Set a reasonable size for the dialog in the tests' second...
authorFederico Mena Quintero <federico@gnome.org>
Mon, 11 Mar 2013 23:27:44 +0000 (17:27 -0600)
committerFederico Mena Quintero <federico@gnome.org>
Tue, 12 Mar 2013 00:16:29 +0000 (18:16 -0600)
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

index f2202bee29ec745a5f0a45d272a516c887eb6c09..1fdce206cbb5fe005cf2daf8bf8af4fd60ce04e1 100644 (file)
@@ -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)