diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-05-27 17:24:58 -0400 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2022-07-13 15:03:05 +0100 |
commit | b3ecc40cf1a52d8a5bc6729b9653e0ca07cd2115 (patch) | |
tree | 02d781376f50b0000b63a667e2739bbba0a3940a /testsuite | |
parent | 5b76d0c2265aadc0b107abdd97a8c7a1c6a5b85e (diff) | |
download | gtk+-b3ecc40cf1a52d8a5bc6729b9653e0ca07cd2115.tar.gz |
testsuite: Fix up a few test for GtkStackPage changes
GtkStackPage objects can no longer be freely created.
Update our generic object tests to take that into
account.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gtk/defaultvalue.c | 1 | ||||
-rw-r--r-- | testsuite/gtk/notify.c | 3 | ||||
-rw-r--r-- | testsuite/gtk/objects-finalize.c | 4 |
3 files changed, 7 insertions, 1 deletions
diff --git a/testsuite/gtk/defaultvalue.c b/testsuite/gtk/defaultvalue.c index 455c2b3b25..f276d51d32 100644 --- a/testsuite/gtk/defaultvalue.c +++ b/testsuite/gtk/defaultvalue.c @@ -78,6 +78,7 @@ test_type (gconstpointer data) if (g_type_is_a (type, GTK_TYPE_APPLICATION) || g_type_is_a (type, GDK_TYPE_PIXBUF_LOADER) || g_type_is_a (type, GTK_TYPE_LAYOUT_CHILD) || + g_type_is_a (type, GTK_TYPE_STACK_PAGE) || #ifdef G_OS_UNIX g_type_is_a (type, GTK_TYPE_PRINT_JOB) || #endif diff --git a/testsuite/gtk/notify.c b/testsuite/gtk/notify.c index 7809d4e915..9907851c5d 100644 --- a/testsuite/gtk/notify.c +++ b/testsuite/gtk/notify.c @@ -409,6 +409,9 @@ test_type (gconstpointer data) if (g_str_equal (g_type_name (type), "GtkPlacesSidebar")) return; + if (g_type_is_a (type, GTK_TYPE_STACK_PAGE)) + return; + /* These rely on a d-bus session bus */ if (g_type_is_a (type, GTK_TYPE_MOUNT_OPERATION)) return; diff --git a/testsuite/gtk/objects-finalize.c b/testsuite/gtk/objects-finalize.c index 1e0526569b..35d2475843 100644 --- a/testsuite/gtk/objects-finalize.c +++ b/testsuite/gtk/objects-finalize.c @@ -178,7 +178,9 @@ main (int argc, char **argv) all_types[i] != GDK_TYPE_PIXBUF_LOADER && all_types[i] != gdk_pixbuf_simple_anim_iter_get_type() && !g_type_is_a (all_types[i], GTK_TYPE_SHORTCUT_TRIGGER) && - !g_type_is_a (all_types[i], GTK_TYPE_SHORTCUT_ACTION)) + !g_type_is_a (all_types[i], GTK_TYPE_SHORTCUT_ACTION) && + /* can't instantiate empty stack pages */ + all_types[i] != GTK_TYPE_STACK_PAGE) { char *test_path = g_strdup_printf ("/FinalizeObject/%s", g_type_name (all_types[i])); |