[progressbar] remove tmp variable stuff formerly used for check_settings
This commit is contained in:
parent
4a38937cf3
commit
270c705447
|
@ -394,11 +394,10 @@ static widget_tell_status_t
|
||||||
progressbar_tell(widget_t *widget, const char *property, const char *new_value)
|
progressbar_tell(widget_t *widget, const char *property, const char *new_value)
|
||||||
{
|
{
|
||||||
Data *d = widget->data;
|
Data *d = widget->data;
|
||||||
int i = 0, value, tmp;
|
int i = 0, value;
|
||||||
char *title, *setting;
|
char *title, *setting;
|
||||||
char *new_val;
|
char *new_val;
|
||||||
float ftmp;
|
bool found;
|
||||||
bool btmp, found;
|
|
||||||
|
|
||||||
if(!new_value)
|
if(!new_value)
|
||||||
return WIDGET_ERROR_NOVALUE;
|
return WIDGET_ERROR_NOVALUE;
|
||||||
|
@ -501,40 +500,19 @@ progressbar_tell(widget_t *widget, const char *property, const char *new_value)
|
||||||
else if(!a_strcmp(property, "gap"))
|
else if(!a_strcmp(property, "gap"))
|
||||||
d->gap = atoi(new_value);
|
d->gap = atoi(new_value);
|
||||||
else if(!a_strcmp(property, "ticks_count"))
|
else if(!a_strcmp(property, "ticks_count"))
|
||||||
{
|
|
||||||
tmp = d->ticks_count;
|
|
||||||
d->ticks_count = atoi(new_value);
|
d->ticks_count = atoi(new_value);
|
||||||
}
|
|
||||||
else if(!a_strcmp(property, "ticks_gap"))
|
else if(!a_strcmp(property, "ticks_gap"))
|
||||||
{
|
|
||||||
tmp = d->ticks_gap;
|
|
||||||
d->ticks_gap = atoi(new_value);
|
d->ticks_gap = atoi(new_value);
|
||||||
}
|
|
||||||
else if(!a_strcmp(property, "border_padding"))
|
else if(!a_strcmp(property, "border_padding"))
|
||||||
{
|
|
||||||
tmp = d->border_padding;
|
|
||||||
d->border_padding = atoi(new_value);
|
d->border_padding = atoi(new_value);
|
||||||
}
|
|
||||||
else if(!a_strcmp(property, "border_width"))
|
else if(!a_strcmp(property, "border_width"))
|
||||||
{
|
|
||||||
tmp = d->border_width;
|
|
||||||
d->border_width = atoi(new_value);
|
d->border_width = atoi(new_value);
|
||||||
}
|
|
||||||
else if(!a_strcmp(property, "width"))
|
else if(!a_strcmp(property, "width"))
|
||||||
{
|
|
||||||
tmp = d->width;
|
|
||||||
d->width = atoi(new_value);
|
d->width = atoi(new_value);
|
||||||
}
|
|
||||||
else if(!a_strcmp(property, "height"))
|
else if(!a_strcmp(property, "height"))
|
||||||
{
|
|
||||||
ftmp = d->height;
|
|
||||||
d->height = atof(new_value);
|
d->height = atof(new_value);
|
||||||
}
|
|
||||||
else if(!a_strcmp(property, "vertical"))
|
else if(!a_strcmp(property, "vertical"))
|
||||||
{
|
|
||||||
btmp = d->vertical;
|
|
||||||
d->vertical = a_strtobool(new_value);
|
d->vertical = a_strtobool(new_value);
|
||||||
}
|
|
||||||
else
|
else
|
||||||
return WIDGET_ERROR;
|
return WIDGET_ERROR;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue