[gtk/focus-cleanup: 1/3] window: Fix up the buildable implementation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/focus-cleanup: 1/3] window: Fix up the buildable implementation
- Date: Sun, 28 Apr 2019 22:22:03 +0000 (UTC)
commit c98313016e7a83ff84bfc1971d7516412d3fdbea
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Apr 28 19:37:41 2019 +0000
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.
gtk/gtkwindow.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index fd12df3266..67dd10dc6f 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -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 {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]