forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
cc22325612
commit
2873195644
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user