change "default" in textbox to "text" and set it to a good default

This commit is contained in:
Julien Danjou 2007-12-27 00:16:08 +01:00
parent 91cc5a4618
commit 7be6a97972
3 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ screen 0
layoutinfo mylayoutinfo {}
netwmicon mynetwmicon {}
focustitle myfocustitle {}
textbox mytextbox {}
textbox mytextbox { text = "awesome!" }
}
}

View File

@ -343,7 +343,7 @@ config_parse(const char *confpatharg)
};
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 *) "bg", (char *) NULL, CFGF_NONE),
CFG_END()

View File

@ -91,7 +91,7 @@ textbox_new(Statusbar *statusbar, cfg_t *config)
else
d->bg = globalconf.screens[statusbar->screen].colors_normal[ColBG];
update(w, cfg_getstr(config, "default"));
update(w, cfg_getstr(config, "text"));
return w;
}
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80