summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-11-02 17:46:35 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-11-02 17:49:47 -0500
commit287319564450211a88e313d99eb3381016ae8074 (patch)
tree49627a3640cc674420f49ca181815e4c5d5bb5cc
parentcc22325612f201e7dca2c38d3603e3bf5d75b064 (diff)
downloadgtk+-287319564450211a88e313d99eb3381016ae8074.tar.gz
GtkHeaderBar: Fix a corner-case in child properties
The child property setting must be prepared to deal with any child property for any child, even if it doesn't make sense, like the pack-type for the custom title. This is happening in glade when undoing a change in the custom-title property.
-rw-r--r--gtk/gtkheaderbar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index 2dd8deeaf6..540a461df3 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -1650,6 +1650,9 @@ gtk_header_bar_set_child_property (GtkContainer *container,
Child *child;
l = find_child_link (bar, widget);
+ if (l == NULL)
+ return;
+
child = l->data;
switch (property_id)