Changeset f126c87 in mainline for uspace/lib/gui/grid.c


Ignore:
Timestamp:
2016-09-01T16:46:27Z (9 years ago)
Author:
Jakub Jermar <jakub@…>
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.
Message:

Merge from mainline.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gui/grid.c

    r9befb0d rf126c87  
    363363}
    364364
    365 bool init_grid(grid_t *grid, widget_t *parent, size_t cols, size_t rows,
    366     pixel_t background)
     365bool init_grid(grid_t *grid, widget_t *parent, const void *data, size_t cols,
     366    size_t rows, pixel_t background)
    367367{
    368368        if ((cols == 0) || (rows == 0))
     
    376376        memset(grid->layout, 0, cols * rows * sizeof(grid_cell_t));
    377377       
    378         widget_init(&grid->widget, parent);
     378        widget_init(&grid->widget, parent, data);
    379379       
    380380        grid->widget.destroy = grid_destroy;
     
    393393}
    394394
    395 grid_t *create_grid(widget_t *parent, size_t cols, size_t rows, pixel_t background)
     395grid_t *create_grid(widget_t *parent, const void *data, size_t cols,
     396    size_t rows, pixel_t background)
    396397{
    397398        grid_t *grid = (grid_t *) malloc(sizeof(grid_t));
     
    399400                return NULL;
    400401       
    401         if (init_grid(grid, parent, cols, rows, background))
     402        if (init_grid(grid, parent, data, cols, rows, background))
    402403                return grid;
    403404       
Note: See TracChangeset for help on using the changeset viewer.