From f2d6def72eb9951d0c04bfc6fb6add0439c6f74f Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Mon, 11 Mar 2013 17:27:44 -0600 Subject: [PATCH 1/1] 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 file changed, 2 insertions(+) diff --git a/gtk/tests/filechooser.c b/gtk/tests/filechooser.c index f2202bee2..1fdce206c 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) -- 2.43.2