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



commit 15f9422adf529d9cb58af67f9975aba056a40fcb
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 2a6559b..6fa0255 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]