Simplify init; there's always a section
This commit is contained in:
parent
f88d403d1c
commit
bd7b718166
5
config.c
5
config.c
|
@ -274,15 +274,10 @@ create_widgets(cfg_t* cfg_statusbar, Statusbar *statusbar)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
config_section_titlebar_init(cfg_t *cfg_titlebar, Titlebar *tb)
|
config_section_titlebar_init(cfg_t *cfg_titlebar, Titlebar *tb)
|
||||||
{
|
|
||||||
if(cfg_titlebar)
|
|
||||||
{
|
{
|
||||||
tb->position = position_get_from_str(cfg_getstr(cfg_titlebar, "position"));
|
tb->position = position_get_from_str(cfg_getstr(cfg_titlebar, "position"));
|
||||||
tb->icon = position_get_from_str(cfg_getstr(cfg_titlebar, "icon"));
|
tb->icon = position_get_from_str(cfg_getstr(cfg_titlebar, "icon"));
|
||||||
}
|
}
|
||||||
else
|
|
||||||
tb->position = Auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
config_parse_screen(cfg_t *cfg, int screen)
|
config_parse_screen(cfg_t *cfg, int screen)
|
||||||
|
|
Loading…
Reference in New Issue