Changes in uspace/lib/gui/button.c [10cb47e:2cc1ec0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gui/button.c
r10cb47e r2cc1ec0 147 147 } 148 148 149 bool 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); 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); 154 153 155 154 btn->widget.destroy = button_destroy; … … 192 191 } 193 192 194 button_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)193 button_t *create_button(widget_t *parent, const char *caption, uint16_t points, 194 pixel_t background, pixel_t foreground, pixel_t text) 196 195 { 197 196 button_t *btn = (button_t *) malloc(sizeof(button_t)); … … 199 198 return NULL; 200 199 201 if (init_button(btn, parent, data,caption, points, background, foreground,200 if (init_button(btn, parent, caption, points, background, foreground, 202 201 text)) 203 202 return btn;
Note:
See TracChangeset
for help on using the changeset viewer.