summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2013-03-11 17:27:44 -0600
committerFederico Mena Quintero <federico@gnome.org>2013-03-11 18:16:29 -0600
commitf2d6def72eb9951d0c04bfc6fb6add0439c6f74f (patch)
tree49bc4854b41368cbfb6a8beb7161416644a6e95d /gtk
parentcade42d5094ceaa7799aa8e2135959573646a4b6 (diff)
downloadgtk+-f2d6def72eb9951d0c04bfc6fb6add0439c6f74f.tar.gz
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.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/tests/filechooser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/tests/filechooser.c b/gtk/tests/filechooser.c
index f2202bee29..1fdce206cb 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)