[gtk+] tests: wait for draw before fetching tree view style
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests: wait for draw before fetching tree view style
- Date: Sun, 24 May 2015 19:16:22 +0000 (UTC)
commit cfbd862aaeff20dac6c372e07f4107622ee44b08
Author: Cosimo Cecchi <cosimo endlessm com>
Date: Tue May 19 10:25:00 2015 -0700
tests: wait for draw before fetching tree view style
On some slower machines (e.g. an ARM OBS builder), this test is failing
with a race condition where we're trying to fetch the style before it's
applied.
https://bugzilla.gnome.org/show_bug.cgi?id=749593
testsuite/gtk/treeview.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/gtk/treeview.c b/testsuite/gtk/treeview.c
index 758b52c..0f301d8 100644
--- a/testsuite/gtk/treeview.c
+++ b/testsuite/gtk/treeview.c
@@ -211,6 +211,7 @@ test_row_separator_height (void)
gtk_container_add (GTK_CONTAINER (window), tree_view);
gtk_widget_show_all (window);
+ gtk_test_widget_wait_for_draw (window);
path = gtk_tree_path_new_from_indices (2, -1);
gtk_tree_view_get_background_area (GTK_TREE_VIEW (tree_view),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]