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


Ignore:
Timestamp:
2016-09-01T16:46:27Z (8 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/label.c

    r9befb0d rf126c87  
    140140}
    141141
    142 bool init_label(label_t *lbl, widget_t *parent, const char *caption,
    143     uint16_t points, pixel_t background, pixel_t text)
    144 {
    145         widget_init(&lbl->widget, parent);
     142bool init_label(label_t *lbl, widget_t *parent, const void *data,
     143    const char *caption, uint16_t points, pixel_t background, pixel_t text)
     144{
     145        widget_init(&lbl->widget, parent, data);
    146146       
    147147        lbl->widget.destroy = label_destroy;
     
    184184}
    185185
    186 label_t *create_label(widget_t *parent, const char *caption, uint16_t points,
    187     pixel_t background, pixel_t text)
     186label_t *create_label(widget_t *parent, const void *data, const char *caption,
     187    uint16_t points, pixel_t background, pixel_t text)
    188188{
    189189        label_t *lbl = (label_t *) malloc(sizeof(label_t));
     
    191191                return NULL;
    192192       
    193         if (init_label(lbl, parent, caption, points, background, text))
     193        if (init_label(lbl, parent, data, caption, points, background, text))
    194194                return lbl;
    195195       
Note: See TracChangeset for help on using the changeset viewer.