From 91f80b251c5569b40645cc92c85e8017e3bbe9f5 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 8 Feb 2008 09:58:36 +0100 Subject: [PATCH] rename align to text_align --- awesomerc.1.txt | 4 ++-- common/configopts.c | 4 ++-- widgets/tasklist.c | 2 +- widgets/textbox.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/awesomerc.1.txt b/awesomerc.1.txt index e651ea63..b64a9246 100644 --- a/awesomerc.1.txt +++ b/awesomerc.1.txt @@ -180,7 +180,7 @@ This widget shows a list of running windows. Background color for focused window. *focus_fg*:: Foreground color for focused window. -*align*:: +*text_align*:: Text alignement. *show_icons*:: Show applications icons. @@ -207,7 +207,7 @@ This widget shows a text. Set width. *text*:: Text to change. -*align*:: +*text_align*:: Text alignement. *x*:: Horizontal offset (auto-alignment if not set). diff --git a/common/configopts.c b/common/configopts.c index 2a1d86a7..6977ac79 100644 --- a/common/configopts.c +++ b/common/configopts.c @@ -100,7 +100,7 @@ cfg_opt_t widget_textbox_opts[] = CFG_STR((char *) "fg", (char *) NULL, CFGF_NONE), CFG_STR((char *) "bg", (char *) NULL, CFGF_NONE), CFG_STR((char *) "font", (char *) NULL, CFGF_NONE), - CFG_STR((char *) "align", (char *) "center", CFGF_NONE), + CFG_STR((char *) "text_align", (char *) "center", CFGF_NONE), CFG_END() }; cfg_opt_t widget_tasklist_opts[] = @@ -113,7 +113,7 @@ cfg_opt_t widget_tasklist_opts[] = CFG_STR((char *) "focus_fg", (char *) NULL, CFGF_NONE), CFG_STR((char *) "focus_bg", (char *) NULL, CFGF_NONE), CFG_STR((char *) "font", (char *) NULL, CFGF_NONE), - CFG_STR((char *) "align", (char *) "left", CFGF_NONE), + CFG_STR((char *) "text_align", (char *) "left", CFGF_NONE), CFG_STR((char *) "show", (char *) "tags", CFGF_NONE), CFG_BOOL((char *) "show_icons", cfg_true, CFGF_NONE), CFG_END() diff --git a/widgets/tasklist.c b/widgets/tasklist.c index 0783d5fb..af48bbcf 100644 --- a/widgets/tasklist.c +++ b/widgets/tasklist.c @@ -296,7 +296,7 @@ tasklist_new(Statusbar *statusbar, cfg_t *config) else d->fg_sel = globalconf.screens[statusbar->screen].colors_selected[ColFG]; - d->align = draw_get_align(cfg_getstr(config, "align")); + d->align = draw_get_align(cfg_getstr(config, "text_align")); d->show_icons = cfg_getbool(config, "show_icons"); buf = cfg_getstr(config, "show"); diff --git a/widgets/textbox.c b/widgets/textbox.c index c0982eee..bf7fcaca 100644 --- a/widgets/textbox.c +++ b/widgets/textbox.c @@ -118,7 +118,7 @@ textbox_new(Statusbar *statusbar, cfg_t *config) d->bg = globalconf.screens[statusbar->screen].colors_normal[ColBG]; d->width = cfg_getint(config, "width"); - d->align = draw_get_align(cfg_getstr(config, "align")); + d->align = draw_get_align(cfg_getstr(config, "text_align")); if((buf = cfg_getstr(config, "font"))) w->font = XftFontOpenName(globalconf.display, get_phys_screen(statusbar->screen), buf); -- 2.11.4.GIT