Changes in uspace/lib/gui/window.c [3e6a98c5:fbb2d0d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gui/window.c
r3e6a98c5 rfbb2d0d 66 66 67 67 static pixel_t border_color = PIXEL(255, 0, 0, 0); 68 static pixel_t header_bg_focus_color = PIXEL(255, 25, 25, 112);68 static pixel_t header_bg_focus_color = PIXEL(255, 88, 106, 196); 69 69 static pixel_t header_fg_focus_color = PIXEL(255, 255, 255, 255); 70 static pixel_t header_bg_unfocus_color = PIXEL(255, 70, 130, 180);70 static pixel_t header_bg_unfocus_color = PIXEL(255, 12, 57, 92); 71 71 static pixel_t header_fg_unfocus_color = PIXEL(255, 255, 255, 255); 72 72 … … 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 } … … 424 417 425 418 while (!list_empty(&win->events.list)) { 426 list_remove(list_first(&win->events.list)); 419 window_event_t *event = (window_event_t *) list_first(&win->events.list); 420 list_remove(&event->link); 421 free(event); 427 422 } 428 423
Note:
See TracChangeset
for help on using the changeset viewer.