From 7be6a97972cc347b2ac37228056dfd6889b9a26c Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 27 Dec 2007 00:16:08 +0100 Subject: [PATCH] change "default" in textbox to "text" and set it to a good default --- awesomerc | 2 +- config.c | 2 +- widgets/textbox.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/awesomerc b/awesomerc index b6cd2ba6..47876597 100644 --- a/awesomerc +++ b/awesomerc @@ -29,7 +29,7 @@ screen 0 layoutinfo mylayoutinfo {} netwmicon mynetwmicon {} focustitle myfocustitle {} - textbox mytextbox {} + textbox mytextbox { text = "awesome!" } } } diff --git a/config.c b/config.c index f88889bf..cebbe62d 100644 --- a/config.c +++ b/config.c @@ -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() diff --git a/widgets/textbox.c b/widgets/textbox.c index 654995bb..f979b0f5 100644 --- a/widgets/textbox.c +++ b/widgets/textbox.c @@ -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