Changeset f126c87 in mainline for uspace/lib/gui/label.c
- Timestamp:
- 2016-09-01T16:46:27Z (8 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gui/label.c
r9befb0d rf126c87 140 140 } 141 141 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 );142 bool 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); 146 146 147 147 lbl->widget.destroy = label_destroy; … … 184 184 } 185 185 186 label_t *create_label(widget_t *parent, const char *caption, uint16_t points,187 pixel_t background, pixel_t text)186 label_t *create_label(widget_t *parent, const void *data, const char *caption, 187 uint16_t points, pixel_t background, pixel_t text) 188 188 { 189 189 label_t *lbl = (label_t *) malloc(sizeof(label_t)); … … 191 191 return NULL; 192 192 193 if (init_label(lbl, parent, caption, points, background, text))193 if (init_label(lbl, parent, data, caption, points, background, text)) 194 194 return lbl; 195 195
Note:
See TracChangeset
for help on using the changeset viewer.