Commit 53fd31ef authored by Cedric Roux's avatar Cedric Roux

bugfix: hints are not valid anymore after adding a child to a container

parent 88bef83d
...@@ -13,9 +13,11 @@ printf("REPACK container %p\n", _this); ...@@ -13,9 +13,11 @@ printf("REPACK container %p\n", _this);
return this->common.parent->repack(g, this->common.parent); return this->common.parent->repack(g, this->common.parent);
} }
static void add_child(gui *g, widget *this, widget *child, int position) static void add_child(gui *g, widget *_this, widget *child, int position)
{ {
printf("ADD_CHILD container\n"); printf("ADD_CHILD container\n");
struct container_widget *this = _this;
this->hints_are_valid = 0;
widget_add_child_internal(g, this, child, position); widget_add_child_internal(g, this, child, position);
} }
......
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