summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2017-09-18 10:39:17 +0900
committerAmitesh Singh <amitesh.sh@samsung.com>2017-09-18 10:40:49 +0900
commit3e65945d5bd64cf3dbce5b585a85f649acec3c18 (patch)
tree9aa6231898243167aaa8d9bd8a1bff54ae28bf00 /src/lib
parent39fdfc3cac94746c9943cac04c99314d1b0b95a3 (diff)
intv slider: use scope_get instead
its better to use efl_data_scope_get() in eolian functions except in finalize().
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elementary/efl_ui_slider_interval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elementary/efl_ui_slider_interval.c b/src/lib/elementary/efl_ui_slider_interval.c
index 815cff6..b747c6c 100644
--- a/src/lib/elementary/efl_ui_slider_interval.c
+++ b/src/lib/elementary/efl_ui_slider_interval.c
@@ -20,7 +20,7 @@ typedef struct
20EOLIAN static void 20EOLIAN static void
21_efl_ui_slider_interval_interval_value_get(Eo *obj, Efl_Ui_Slider_Interval_Data *sd EINA_UNUSED, double *from, double *to) 21_efl_ui_slider_interval_interval_value_get(Eo *obj, Efl_Ui_Slider_Interval_Data *sd EINA_UNUSED, double *from, double *to)
22{ 22{
23 Efl_Ui_Slider_Data *pd = efl_data_scope_safe_get(obj, EFL_UI_SLIDER_CLASS); 23 Efl_Ui_Slider_Data *pd = efl_data_scope_get(obj, EFL_UI_SLIDER_CLASS);
24 if (from) *from = fmin(pd->intvl_from, pd->intvl_to); 24 if (from) *from = fmin(pd->intvl_from, pd->intvl_to);
25 if (to) *to = fmax(pd->intvl_from, pd->intvl_to); 25 if (to) *to = fmax(pd->intvl_from, pd->intvl_to);
26} 26}
@@ -92,7 +92,7 @@ _visuals_refresh(Eo *obj)
92EOLIAN static void 92EOLIAN static void
93_efl_ui_slider_interval_interval_value_set(Eo *obj, Efl_Ui_Slider_Interval_Data *sd EINA_UNUSED, double from, double to) 93_efl_ui_slider_interval_interval_value_set(Eo *obj, Efl_Ui_Slider_Interval_Data *sd EINA_UNUSED, double from, double to)
94{ 94{
95 Efl_Ui_Slider_Data *pd = efl_data_scope_safe_get(obj, EFL_UI_SLIDER_CLASS); 95 Efl_Ui_Slider_Data *pd = efl_data_scope_get(obj, EFL_UI_SLIDER_CLASS);
96 96
97 pd->intvl_from = from; 97 pd->intvl_from = from;
98 pd->val = from; 98 pd->val = from;