From 0c4b56a06518a7dbcf76c8cd710af0132fb86463 Mon Sep 17 00:00:00 2001 From: marco candrian Date: Wed, 2 Jul 2008 02:48:35 +0200 Subject: [PATCH] add fg_off to set + fix copy/paste typo - widgets/progressbar.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) Signed-off-by: Julien Danjou --- widgets/progressbar.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/widgets/progressbar.c b/widgets/progressbar.c index 1ec2a6401..f9ed29719 100644 --- a/widgets/progressbar.c +++ b/widgets/progressbar.c @@ -434,6 +434,13 @@ luaA_progressbar_bar_properties_set(lua_State *L) bar->fg = color; } + if((buf = luaA_getopt_string(L, 3, "fg_off", NULL)) + && xcolor_new(globalconf.connection, globalconf.default_screen, buf, &color)) + { + xcolor_wipe(&bar->fg_off); + bar->fg_off = color; + } + if((buf = luaA_getopt_string(L, 3, "bg", NULL)) && xcolor_new(globalconf.connection, globalconf.default_screen, buf, &color)) { @@ -452,7 +459,7 @@ luaA_progressbar_bar_properties_set(lua_State *L) && xcolor_new(globalconf.connection, globalconf.default_screen, buf, &color)) { xcolor_wipe(bar->pfg_center); - bar->pfg_end = p_dup(&color, 1);; + bar->pfg_center = p_dup(&color, 1);; } if((buf = luaA_getopt_string(L, 3, "fg_end", NULL))