diff options
author | Federico Mena Quintero <federico@ximian.com> | 2005-09-29 01:56:10 +0000 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2005-09-29 01:56:10 +0000 |
commit | e14ad12b3ff6b41b4f429171ba3ec3717cc6b4c8 (patch) | |
tree | 32a8e75f1ccfadef9f7ecb153a4702cf002c8ecb /tests | |
parent | c5d43cdbef96cedcd2483cc0ba1e8d8d4a2e8407 (diff) | |
download | gtk+-e14ad12b3ff6b41b4f429171ba3ec3717cc6b4c8.tar.gz |
Oops, return if the unmap test fails. (test_reload_sequence): Use
2005-09-28 Federico Mena Quintero <federico@ximian.com>
* tests/autotestfilechooser.c (test_reload_sequence): Oops, return
if the unmap test fails.
(test_reload_sequence): Use gtk_widget_show_now() instead of
gtk_widget_show() for the dialog.
Thanks to Tim Janik for noticing these.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/autotestfilechooser.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/autotestfilechooser.c b/tests/autotestfilechooser.c index 10f26c591f..7597bf52a5 100644 --- a/tests/autotestfilechooser.c +++ b/tests/autotestfilechooser.c @@ -257,7 +257,7 @@ test_action_widgets (void) GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, NULL); - gtk_widget_show (dialog); + gtk_widget_show_now (dialog); action = gtk_file_chooser_get_action (GTK_FILE_CHOOSER (dialog)); @@ -322,7 +322,7 @@ test_reload_sequence (gboolean set_folder_before_map) /* After mapping, it is loading some folder, either the one that was explicitly set or the default one */ - gtk_widget_show (dialog); + gtk_widget_show_now (dialog); passed = (impl->current_folder != NULL && impl->browse_files_model != NULL @@ -347,10 +347,12 @@ test_reload_sequence (gboolean set_folder_before_map) && ((impl->load_state == LOAD_LOADING || impl->load_state == LOAD_FINISHED) ? (impl->load_timeout_id == 0 && impl->sort_model != NULL) : TRUE)); + if (!passed) + return FALSE; /* Map it again! */ - gtk_widget_show (dialog); + gtk_widget_show_now (dialog); passed = (impl->current_folder != NULL && impl->browse_files_model != NULL |