Changeset f126c87 in mainline for uspace/lib/gui/button.c


Ignore:
Timestamp:
2016-09-01T16:46:27Z (9 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2a2fbc8
Parents:
9befb0d (diff), bdfdc51c (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 from mainline.

File:
1 edited

Legend:

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

    r9befb0d rf126c87  
    147147}
    148148
    149 bool init_button(button_t *btn, widget_t *parent, const char *caption,
    150     uint16_t points, pixel_t background, pixel_t foreground, pixel_t text)
    151 {
    152         widget_init(&btn->widget, parent);
     149bool init_button(button_t *btn, widget_t *parent, const void *data,
     150    const char *caption, uint16_t points, pixel_t background,
     151    pixel_t foreground, pixel_t text)
     152{
     153        widget_init(&btn->widget, parent, data);
    153154       
    154155        btn->widget.destroy = button_destroy;
     
    191192}
    192193
    193 button_t *create_button(widget_t *parent, const char *caption, uint16_t points,
    194     pixel_t background, pixel_t foreground, pixel_t text)
     194button_t *create_button(widget_t *parent, const void *data, const char *caption,
     195    uint16_t points, pixel_t background, pixel_t foreground, pixel_t text)
    195196{
    196197        button_t *btn = (button_t *) malloc(sizeof(button_t));
     
    198199                return NULL;
    199200       
    200         if (init_button(btn, parent, caption, points, background, foreground,
     201        if (init_button(btn, parent, data, caption, points, background, foreground,
    201202            text))
    202203                return btn;
Note: See TracChangeset for help on using the changeset viewer.