From fb856d96cd8657e53b31a9fdaa736800ff567736 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 14 Feb 2020 19:32:50 +0100 Subject: [PATCH] builder: Use different construct-only property The window type is going away, so use the css name instead. --- testsuite/gtk/builder.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/testsuite/gtk/builder.c b/testsuite/gtk/builder.c index b1d412ca62..520b4e07d2 100644 --- a/testsuite/gtk/builder.c +++ b/testsuite/gtk/builder.c @@ -828,7 +828,7 @@ test_construct_only_property (void) const gchar buffer[] = "" " " - " popup" + " amazing" " " ""; const gchar buffer2[] = @@ -839,12 +839,10 @@ test_construct_only_property (void) " " ""; GObject *widget, *tagtable, *textbuffer; - GtkWindowType type; builder = builder_new_from_string (buffer, -1, NULL); widget = gtk_builder_get_object (builder, "window1"); - g_object_get (widget, "type", &type, NULL); - g_assert (type == GTK_WINDOW_POPUP); + g_assert_cmpstr (gtk_widget_get_css_name (GTK_WIDGET (widget)), ==, "amazing"); gtk_widget_destroy (GTK_WIDGET (widget)); g_object_unref (builder);