Changes in uspace/lib/gui/grid.c [10cb47e:e63c424f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gui/grid.c
r10cb47e re63c424f 298 298 paint_internal(widget); 299 299 300 list_foreach(widget->children, link, widget_t, child) { 300 list_foreach(widget->children, link) { 301 widget_t *child = list_get_instance(link, widget_t, link); 301 302 child->repaint(child); 302 303 } … … 363 364 } 364 365 365 bool init_grid(grid_t *grid, widget_t *parent, const void *data, size_t cols,366 size_t rows,pixel_t background)366 bool init_grid(grid_t *grid, widget_t *parent, size_t cols, size_t rows, 367 pixel_t background) 367 368 { 368 369 if ((cols == 0) || (rows == 0)) … … 376 377 memset(grid->layout, 0, cols * rows * sizeof(grid_cell_t)); 377 378 378 widget_init(&grid->widget, parent , data);379 widget_init(&grid->widget, parent); 379 380 380 381 grid->widget.destroy = grid_destroy; … … 393 394 } 394 395 395 grid_t *create_grid(widget_t *parent, const void *data, size_t cols, 396 size_t rows, pixel_t background) 396 grid_t *create_grid(widget_t *parent, size_t cols, size_t rows, pixel_t background) 397 397 { 398 398 grid_t *grid = (grid_t *) malloc(sizeof(grid_t)); … … 400 400 return NULL; 401 401 402 if (init_grid(grid, parent, data,cols, rows, background))402 if (init_grid(grid, parent, cols, rows, background)) 403 403 return grid; 404 404
Note:
See TracChangeset
for help on using the changeset viewer.