mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 00:05:40 +02:00
config: bar: no need to check for NULL on required attributes
This commit is contained in:
parent
61a2f84651
commit
3f578d30eb
2 changed files with 34 additions and 33 deletions
|
@ -632,16 +632,20 @@ config_verify_bar(const struct yml_node *bar)
|
|||
|
||||
static const struct attr_info attrs[] = {
|
||||
{"height", true, &verify_int},
|
||||
{"location", true, &verify_bar_location},
|
||||
{"background", true, &verify_color},
|
||||
|
||||
{"spacing", false, &verify_int},
|
||||
{"left_spacing", false, &verify_int},
|
||||
{"right_spacing", false, &verify_int},
|
||||
|
||||
{"margin", false, &verify_int},
|
||||
{"left_margin", false, &verify_int},
|
||||
{"right_margin", false, &verify_int},
|
||||
{"location", true, &verify_bar_location},
|
||||
{"background", true, &verify_color},
|
||||
|
||||
{"border", false, &verify_bar_border},
|
||||
{"font", false, &verify_font},
|
||||
|
||||
{"left", false, &verify_module_list},
|
||||
{"center", false, &verify_module_list},
|
||||
{"right", false, &verify_module_list},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue