window: Fix up the buildable implementation

We were assuming that the parent class has a custom
set_property, which may not be the case. Be more
careful.
This commit is contained in:
Matthias Clasen
2019-04-28 19:37:41 +00:00
parent 3a40555202
commit c98313016e

View File

@@ -2134,8 +2134,10 @@ gtk_window_buildable_set_buildable_property (GtkBuildable *buildable,
if (strcmp (name, "visible") == 0 && g_value_get_boolean (value))
priv->builder_visible = TRUE;
else
else if (parent_buildable_iface->set_buildable_property)
parent_buildable_iface->set_buildable_property (buildable, builder, name, value);
else
g_object_set_property (G_OBJECT (buildable), name, value);
}
typedef struct {