From e350a61eb0ece336b06756899b1f50398504b867 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 2 Jun 2008 14:26:49 +0200 Subject: [PATCH] [widget] Add tasklist show property Signed-off-by: Julien Danjou --- widgets/tasklist.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/widgets/tasklist.c b/widgets/tasklist.c index 148958abc..b92abfa7e 100644 --- a/widgets/tasklist.c +++ b/widgets/tasklist.c @@ -243,6 +243,17 @@ tasklist_tell(widget_t *widget, const char *property, const char *new_value) } else if(!a_strcmp(property, "show_icons")) d->show_icons = a_strtobool(new_value); + else if(!a_strcmp(property, "show")) + { + if(!a_strcmp(property, "tags")) + d->show = ShowTags; + else if(!a_strcmp(property, "focus")) + d->show = ShowFocus; + else if(!a_strcmp(property, "all")) + d->show = ShowAll; + else + return WIDGET_ERROR; + } else return WIDGET_ERROR;