mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 00:05:40 +02:00
module/xwindow: export module info through the new module_info struct type
This commit is contained in:
parent
905f289659
commit
6f9e48698e
4 changed files with 24 additions and 21 deletions
11
config.c
11
config.c
|
@ -362,13 +362,6 @@ conf_to_particle(const struct yml_node *node, const struct font *parent_font)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static struct module *
|
||||
module_xwindow_from_config(const struct yml_node *node, const struct font *parent_font)
|
||||
{
|
||||
const struct yml_node *c = yml_get_value(node, "content");
|
||||
return module_xwindow(conf_to_particle(c, parent_font));
|
||||
}
|
||||
|
||||
struct bar *
|
||||
conf_to_bar(const struct yml_node *bar)
|
||||
{
|
||||
|
@ -479,10 +472,8 @@ conf_to_bar(const struct yml_node *bar)
|
|||
mods[idx] = module_removables.from_conf(m.value, font);
|
||||
else if (strcmp(mod_name, "xkb") == 0)
|
||||
mods[idx] = module_xkb.from_conf(m.value, font);
|
||||
|
||||
|
||||
else if (strcmp(mod_name, "xwindow") == 0)
|
||||
mods[idx] = module_xwindow_from_config(m.value, font);
|
||||
mods[idx] = module_xwindow.from_conf(m.value, font);
|
||||
else
|
||||
assert(false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue