[gtk/wip/otte/for-master: 5/12] builder: Use different construct-only property
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/for-master: 5/12] builder: Use different construct-only property
- Date: Fri, 14 Feb 2020 20:22:27 +0000 (UTC)
commit fb856d96cd8657e53b31a9fdaa736800ff567736
Author: Benjamin Otte <otte redhat com>
Date: Fri Feb 14 19:32:50 2020 +0100
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[] =
"<interface>"
" <object class=\"GtkWindow\" id=\"window1\">"
- " <property name=\"type\">popup</property>"
+ " <property name=\"css-name\">amazing</property>"
" </object>"
"</interface>";
const gchar buffer2[] =
@@ -839,12 +839,10 @@ test_construct_only_property (void)
" </object>"
"</interface>";
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]