Commit c15a76c6 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Fix a crash when getting header bar child properties

The find_child_link call will return NULL if the child is
the label.
parent af146958
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment