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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user