Changeset 3f03199 in mainline for uspace/lib/gui/window.c


Ignore:
Timestamp:
2013-09-15T06:33:53Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9348862
Parents:
dd7078c (diff), 1c0cef0 (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.
Message:

Merge mainline changes.

Major conflicts in USB HC drivers.
Compiles and UHCI works (qemu).
OHCI has device remove problems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gui/window.c

    rdd7078c r3f03199  
    6666
    6767static pixel_t border_color = PIXEL(255, 0, 0, 0);
    68 static pixel_t header_bg_focus_color = PIXEL(255, 25, 25, 112);
     68static pixel_t header_bg_focus_color = PIXEL(255, 88, 106, 196);
    6969static pixel_t header_fg_focus_color = PIXEL(255, 255, 255, 255);
    70 static pixel_t header_bg_unfocus_color = PIXEL(255, 70, 130, 180);
     70static pixel_t header_bg_unfocus_color = PIXEL(255, 12, 57, 92);
    7171static pixel_t header_fg_unfocus_color = PIXEL(255, 255, 255, 255);
    7272
     
    137137{
    138138        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) {
    141140                        child->rearrange(child,
    142141                            widget->hpos + border_thickness,
     
    146145                }
    147146        } 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) {
    150148                        child->rearrange(child, widget->hpos, widget->vpos,
    151149                            widget->width, widget->height);
     
    160158        if (widget->window->is_decorated) {
    161159                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) {
    164161                        child->rearrange(child,
    165162                            hpos + border_thickness,
     
    169166                }
    170167        } 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) {
    173169                        child->rearrange(child, hpos, vpos, width, height);
    174170                }
     
    181177                paint_internal(widget);
    182178        }
    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) {
    185180                child->repaint(child);
    186181        }
     
    268263                        win_grab(widget->window->osess, event.pos_id, flags);
    269264                } 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) {
    272266                                child->handle_position_event(child, event);
    273267                        }
    274268                }
    275269        } 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) {
    278271                        child->handle_position_event(child, event);
    279272                }
Note: See TracChangeset for help on using the changeset viewer.