mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-18 00:45:38 +02:00
tag: all tag constructors must now be passed a module 'owner'
This commit is contained in:
parent
8d94202057
commit
904f9ff8e1
9 changed files with 58 additions and 42 deletions
|
@ -44,8 +44,9 @@ content(struct module *mod)
|
|||
mtx_lock(&mod->lock);
|
||||
struct tag_set tags = {
|
||||
.tags = (struct tag *[]){
|
||||
tag_new_int_range("brightness", m->current_brightness, 0, m->max_brightness),
|
||||
tag_new_int("max_brightness", m->max_brightness),
|
||||
tag_new_int_range(mod, "brightness", m->current_brightness,
|
||||
0, m->max_brightness),
|
||||
tag_new_int(mod, "max_brightness", m->max_brightness),
|
||||
},
|
||||
.count = 2,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue