Changeset 10cb47e in mainline for uspace/lib/gui/grid.c
- Timestamp:
- 2016-08-31T15:43:01Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bdfdc51c
- Parents:
- 58563585
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gui/grid.c
r58563585 r10cb47e 363 363 } 364 364 365 bool init_grid(grid_t *grid, widget_t *parent, size_t cols, size_t rows,366 pixel_t background)365 bool init_grid(grid_t *grid, widget_t *parent, const void *data, size_t cols, 366 size_t rows, pixel_t background) 367 367 { 368 368 if ((cols == 0) || (rows == 0)) … … 376 376 memset(grid->layout, 0, cols * rows * sizeof(grid_cell_t)); 377 377 378 widget_init(&grid->widget, parent );378 widget_init(&grid->widget, parent, data); 379 379 380 380 grid->widget.destroy = grid_destroy; … … 393 393 } 394 394 395 grid_t *create_grid(widget_t *parent, size_t cols, size_t rows, pixel_t background) 395 grid_t *create_grid(widget_t *parent, const void *data, size_t cols, 396 size_t rows, pixel_t background) 396 397 { 397 398 grid_t *grid = (grid_t *) malloc(sizeof(grid_t)); … … 399 400 return NULL; 400 401 401 if (init_grid(grid, parent, cols, rows, background))402 if (init_grid(grid, parent, data, cols, rows, background)) 402 403 return grid; 403 404
Note:
See TracChangeset
for help on using the changeset viewer.