forked from external/yambar
particles: verify: use conf_verify_unsigned() for options that should be >= 0
This commit is contained in:
parent
f166bbbf54
commit
4f0d27bc7e
4 changed files with 13 additions and 13 deletions
16
particle.h
16
particle.h
|
@ -76,12 +76,12 @@ void exposable_default_on_mouse(
|
|||
enum mouse_event event, enum mouse_button btn, int x, int y);
|
||||
|
||||
/* List of attributes *all* particles implement */
|
||||
#define PARTICLE_COMMON_ATTRS \
|
||||
{"margin", false, &conf_verify_int}, \
|
||||
{"left-margin", false, &conf_verify_int}, \
|
||||
{"right-margin", false, &conf_verify_int}, \
|
||||
{"on-click", false, &conf_verify_on_click}, \
|
||||
{"font", false, &conf_verify_font}, \
|
||||
{"foreground", false, &conf_verify_color}, \
|
||||
{"deco", false, &conf_verify_decoration}, \
|
||||
#define PARTICLE_COMMON_ATTRS \
|
||||
{"margin", false, &conf_verify_unsigned}, \
|
||||
{"left-margin", false, &conf_verify_unsigned}, \
|
||||
{"right-margin", false, &conf_verify_unsigned}, \
|
||||
{"on-click", false, &conf_verify_on_click}, \
|
||||
{"font", false, &conf_verify_font}, \
|
||||
{"foreground", false, &conf_verify_color}, \
|
||||
{"deco", false, &conf_verify_decoration}, \
|
||||
{NULL, false, NULL}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue