From 58a84b5b166e9d65993d8babfd1b2678df14230d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 29 May 2020 22:20:18 -0400 Subject: [PATCH] testsuite: Skip some GtkDropDown properties The ::factory and ::selected properties need to be skipped. --- testsuite/gtk/defaultvalue.c | 4 ++++ testsuite/gtk/notify.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/testsuite/gtk/defaultvalue.c b/testsuite/gtk/defaultvalue.c index 79ed6179f3..98f6dc7b43 100644 --- a/testsuite/gtk/defaultvalue.c +++ b/testsuite/gtk/defaultvalue.c @@ -411,6 +411,10 @@ G_GNUC_END_IGNORE_DEPRECATIONS strcmp (pspec->name, "adjustment") == 0) continue; + if (g_type_is_a (type, GTK_TYPE_DROP_DOWN) && + strcmp (pspec->name, "factory") == 0) + continue; + /* All the icontheme properties depend on the environment */ if (g_type_is_a (type, GTK_TYPE_ICON_THEME)) continue; diff --git a/testsuite/gtk/notify.c b/testsuite/gtk/notify.c index 62c22f2920..a5944a2b5c 100644 --- a/testsuite/gtk/notify.c +++ b/testsuite/gtk/notify.c @@ -647,6 +647,11 @@ test_type (gconstpointer data) g_str_equal (pspec->name, "selected-item"))) continue; + /* can't select items without an underlying, populated model */ + if (g_type_is_a (type, GTK_TYPE_DROP_DOWN) && + g_str_equal (pspec->name, "selected")) + continue; + /* can't set position without a notebook */ if (g_type_is_a (type, GTK_TYPE_NOTEBOOK_PAGE) && g_str_equal (pspec->name, "position"))