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 <julien@danjou.info>
This commit is contained in:
marco candrian 2008-07-02 02:48:35 +02:00 committed by Julien Danjou
parent 3e9cf64123
commit 0c4b56a065
1 changed files with 8 additions and 1 deletions

View File

@ -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))