mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
grid: add new function grid_row_add_uri_range()
This commit is contained in:
parent
fd505f2274
commit
5eea06cff9
2 changed files with 11 additions and 0 deletions
9
grid.c
9
grid.c
|
|
@ -588,3 +588,12 @@ grid_resize_and_reflow(
|
||||||
|
|
||||||
tll_free(tracking_points);
|
tll_free(tracking_points);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
grid_row_add_uri_range(struct row *row, struct row_uri_range range)
|
||||||
|
{
|
||||||
|
if (row->extra == NULL)
|
||||||
|
row->extra = xcalloc(1, sizeof(*row->extra));
|
||||||
|
|
||||||
|
tll_push_back(row->extra->uri_ranges, range);
|
||||||
|
}
|
||||||
|
|
|
||||||
2
grid.h
2
grid.h
|
|
@ -73,6 +73,8 @@ grid_row_in_view(struct grid *grid, int row_no)
|
||||||
return row;
|
return row;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void grid_row_add_uri_range(struct row *row, struct row_uri_range range);
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
grid_row_reset_extra(struct row *row)
|
grid_row_reset_extra(struct row *row)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue