fix widget_set_value (issue #250)

This commit is contained in:
lixianjing 2019-10-14 07:56:28 +08:00
parent dad1ffeb86
commit eedc9afba7

View File

@ -193,7 +193,7 @@ ret_t widget_set_value(widget_t* widget, int32_t value) {
value_t v;
return_value_if_fail(widget != NULL, RET_BAD_PARAMS);
return widget_set_prop(widget, WIDGET_PROP_VALUE, value_set_uint32(&v, value));
return widget_set_prop(widget, WIDGET_PROP_VALUE, value_set_int(&v, value));
}
ret_t widget_add_value(widget_t* widget, int32_t delta) {