Fix a crash when getting header bar child properties

The find_child_link call will return NULL if the child is
the label.
This commit is contained in:
Matthias Clasen
2013-03-10 21:59:27 -04:00
parent af14695875
commit c15a76c6e1

View File

@@ -905,6 +905,12 @@ gtk_header_bar_get_child_property (GtkContainer *container,
Child *child;
l = find_child_link (GTK_HEADER_BAR (container), widget);
if (l == NULL)
{
g_param_value_set_default (pspec, value);
return;
}
child = l->data;
switch (property_id)