forked from enlightenment/efl
elm elm_spinner.c: Removed unnecessary local variable.
Removed local variable "offset".
This commit is contained in:
parent
f868609b5d
commit
8aef8ee700
|
@ -159,7 +159,7 @@ _drag_cb(void *data,
|
||||||
const char *emission __UNUSED__,
|
const char *emission __UNUSED__,
|
||||||
const char *source __UNUSED__)
|
const char *source __UNUSED__)
|
||||||
{
|
{
|
||||||
double pos = 0.0, offset, delta;
|
double pos = 0.0, delta;
|
||||||
Evas_Object *obj = data;
|
Evas_Object *obj = data;
|
||||||
Eina_Bool ret = EINA_FALSE;
|
Eina_Bool ret = EINA_FALSE;
|
||||||
|
|
||||||
|
@ -170,8 +170,7 @@ _drag_cb(void *data,
|
||||||
eo_do((Eo *)wd->resize_obj,
|
eo_do((Eo *)wd->resize_obj,
|
||||||
edje_obj_part_drag_value_get("elm.dragable.slider", &pos, NULL, &ret));
|
edje_obj_part_drag_value_get("elm.dragable.slider", &pos, NULL, &ret));
|
||||||
|
|
||||||
offset = sd->step * _elm_config->scale;
|
delta = pos * sd->step * _elm_config->scale;
|
||||||
delta = pos * offset;
|
|
||||||
/* If we are on rtl mode, change the delta to be negative on such changes */
|
/* If we are on rtl mode, change the delta to be negative on such changes */
|
||||||
if (elm_widget_mirrored_get(obj)) delta *= -1;
|
if (elm_widget_mirrored_get(obj)) delta *= -1;
|
||||||
if (_value_set(data, sd->drag_start_val + delta)) _label_write(data);
|
if (_value_set(data, sd->drag_start_val + delta)) _label_write(data);
|
||||||
|
|
Loading…
Reference in New Issue