mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
common: Add znew/znew_n() macros
This commit is contained in:
parent
da57483961
commit
a54d378e6c
26 changed files with 47 additions and 47 deletions
|
|
@ -17,7 +17,7 @@ multi_rect_destroy_notify(struct wl_listener *listener, void *data)
|
|||
struct multi_rect *
|
||||
multi_rect_create(struct wlr_scene_tree *parent, float *colors[3], int line_width)
|
||||
{
|
||||
struct multi_rect *rect = xzalloc(sizeof(*rect));
|
||||
struct multi_rect *rect = znew(*rect);
|
||||
rect->line_width = line_width;
|
||||
rect->tree = wlr_scene_tree_create(parent);
|
||||
rect->destroy.notify = multi_rect_destroy_notify;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue