[gtk/default-handling: 1/4] window: Fix up the buildable implementation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/default-handling: 1/4] window: Fix up the buildable implementation
- Date: Sun, 28 Apr 2019 19:39:53 +0000 (UTC)
commit 9def2179d68c838e44b73f0a34e221531a3a533a
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 98d551460d..d47321a678 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -2176,8 +2176,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]