diff options
Diffstat (limited to 'src/ui/widget.c')
-rw-r--r-- | src/ui/widget.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/widget.c b/src/ui/widget.c index 78a8a8bf..da7efb57 100644 --- a/src/ui/widget.c +++ b/src/ui/widget.c | |||
@@ -1130,6 +1130,10 @@ iAny *addChild_Widget(iWidget *d, iAnyObject *child) { | |||
1130 | } | 1130 | } |
1131 | 1131 | ||
1132 | iAny *addChildPos_Widget(iWidget *d, iAnyObject *child, enum iWidgetAddPos addPos) { | 1132 | iAny *addChildPos_Widget(iWidget *d, iAnyObject *child, enum iWidgetAddPos addPos) { |
1133 | return addChildPosFlags_Widget(d, child, addPos, 0); | ||
1134 | } | ||
1135 | |||
1136 | iAny *addChildPosFlags_Widget(iWidget *d, iAnyObject *child, enum iWidgetAddPos addPos, int64_t flags) { | ||
1133 | iAssert(child); | 1137 | iAssert(child); |
1134 | iAssert(d != child); | 1138 | iAssert(d != child); |
1135 | iWidget *widget = as_Widget(child); | 1139 | iWidget *widget = as_Widget(child); |
@@ -1144,6 +1148,9 @@ iAny *addChildPos_Widget(iWidget *d, iAnyObject *child, enum iWidgetAddPos addPo | |||
1144 | pushFront_ObjectList(d->children, widget); /* ref */ | 1148 | pushFront_ObjectList(d->children, widget); /* ref */ |
1145 | } | 1149 | } |
1146 | widget->parent = d; | 1150 | widget->parent = d; |
1151 | if (flags) { | ||
1152 | setFlags_Widget(child, flags, iTrue); | ||
1153 | } | ||
1147 | return child; | 1154 | return child; |
1148 | } | 1155 | } |
1149 | 1156 | ||