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.
This commit is contained in:
Matthias Clasen 2022-05-27 17:24:58 -04:00 committed by Emmanuele Bassi
parent 5b76d0c226
commit b3ecc40cf1
3 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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;

View File

@ -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]));