diff options
| author | Matthias Clasen <mclasen@redhat.com> | 2014-11-02 17:46:35 -0500 |
|---|---|---|
| committer | Matthias Clasen <mclasen@redhat.com> | 2014-11-02 17:49:47 -0500 |
| commit | 287319564450211a88e313d99eb3381016ae8074 (patch) | |
| tree | 49627a3640cc674420f49ca181815e4c5d5bb5cc | |
| parent | cc22325612f201e7dca2c38d3603e3bf5d75b064 (diff) | |
| download | gtk+-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.c | 3 |
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) |
