Changeset 99c2c69e in mainline for uspace/lib/gui/window.c
- Timestamp:
- 2013-09-13T00:36:30Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 67fbd5e
- Parents:
- 7f84430 (diff), 11d41be5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gui/window.c
r7f84430 r99c2c69e 137 137 { 138 138 if (widget->window->is_decorated) { 139 list_foreach(widget->children, link) { 140 widget_t *child = list_get_instance(link, widget_t, link); 139 list_foreach(widget->children, link, widget_t, child) { 141 140 child->rearrange(child, 142 141 widget->hpos + border_thickness, … … 146 145 } 147 146 } else { 148 list_foreach(widget->children, link) { 149 widget_t *child = list_get_instance(link, widget_t, link); 147 list_foreach(widget->children, link, widget_t, child) { 150 148 child->rearrange(child, widget->hpos, widget->vpos, 151 149 widget->width, widget->height); … … 160 158 if (widget->window->is_decorated) { 161 159 paint_internal(widget); 162 list_foreach(widget->children, link) { 163 widget_t *child = list_get_instance(link, widget_t, link); 160 list_foreach(widget->children, link, widget_t, child) { 164 161 child->rearrange(child, 165 162 hpos + border_thickness, … … 169 166 } 170 167 } else { 171 list_foreach(widget->children, link) { 172 widget_t *child = list_get_instance(link, widget_t, link); 168 list_foreach(widget->children, link, widget_t, child) { 173 169 child->rearrange(child, hpos, vpos, width, height); 174 170 } … … 181 177 paint_internal(widget); 182 178 } 183 list_foreach(widget->children, link) { 184 widget_t *child = list_get_instance(link, widget_t, link); 179 list_foreach(widget->children, link, widget_t, child) { 185 180 child->repaint(child); 186 181 } … … 268 263 win_grab(widget->window->osess, event.pos_id, flags); 269 264 } else { 270 list_foreach(widget->children, link) { 271 widget_t *child = list_get_instance(link, widget_t, link); 265 list_foreach(widget->children, link, widget_t, child) { 272 266 child->handle_position_event(child, event); 273 267 } 274 268 } 275 269 } else { 276 list_foreach(widget->children, link) { 277 widget_t *child = list_get_instance(link, widget_t, link); 270 list_foreach(widget->children, link, widget_t, child) { 278 271 child->handle_position_event(child, event); 279 272 }
Note:
See TracChangeset
for help on using the changeset viewer.