Changes in uspace/lib/gui/label.c [2cc1ec0:10cb47e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gui/label.c
r2cc1ec0 r10cb47e 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.