change "default" in textbox to "text" and set it to a good default
This commit is contained in:
parent
91cc5a4618
commit
7be6a97972
|
@ -29,7 +29,7 @@ screen 0
|
||||||
layoutinfo mylayoutinfo {}
|
layoutinfo mylayoutinfo {}
|
||||||
netwmicon mynetwmicon {}
|
netwmicon mynetwmicon {}
|
||||||
focustitle myfocustitle {}
|
focustitle myfocustitle {}
|
||||||
textbox mytextbox {}
|
textbox mytextbox { text = "awesome!" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
config.c
2
config.c
|
@ -343,7 +343,7 @@ config_parse(const char *confpatharg)
|
||||||
};
|
};
|
||||||
static cfg_opt_t widget_textbox_opts[] =
|
static cfg_opt_t widget_textbox_opts[] =
|
||||||
{
|
{
|
||||||
CFG_STR((char *) "default", (char *) NULL, CFGF_NONE),
|
CFG_STR((char *) "text", (char *) NULL, CFGF_NONE),
|
||||||
CFG_STR((char *) "fg", (char *) NULL, CFGF_NONE),
|
CFG_STR((char *) "fg", (char *) NULL, CFGF_NONE),
|
||||||
CFG_STR((char *) "bg", (char *) NULL, CFGF_NONE),
|
CFG_STR((char *) "bg", (char *) NULL, CFGF_NONE),
|
||||||
CFG_END()
|
CFG_END()
|
||||||
|
|
|
@ -91,7 +91,7 @@ textbox_new(Statusbar *statusbar, cfg_t *config)
|
||||||
else
|
else
|
||||||
d->bg = globalconf.screens[statusbar->screen].colors_normal[ColBG];
|
d->bg = globalconf.screens[statusbar->screen].colors_normal[ColBG];
|
||||||
|
|
||||||
update(w, cfg_getstr(config, "default"));
|
update(w, cfg_getstr(config, "text"));
|
||||||
return w;
|
return w;
|
||||||
}
|
}
|
||||||
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80
|
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80
|
||||||
|
|
Loading…
Reference in New Issue