[widget] Add tasklist show property

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-02 14:26:49 +02:00
parent a4161434c2
commit e350a61eb0
1 changed files with 11 additions and 0 deletions

View File

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