summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_slider_interval.c
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-05-24 12:30:31 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-24 12:30:32 -0400
commit38d7d33354ce4d13d70f707498c267b120bf2e5a (patch)
tree4b6d9ad3f3e3089b3999d5e10a759fe7f5c73206 /src/lib/elementary/efl_ui_slider_interval.c
parent00851ea53b7d87c2b5be244d4fba0af9253f8039 (diff)
downloadefl-38d7d33354ce4d13d70f707498c267b120bf2e5a.tar.gz
Rename Efl.Ui.Direction -> Efl.Ui.Layout_Orientation
Summary: This clarifies a bit the whole Orientation vs. Direction confusion, at the expense of longer names (Image_Orientation vs. Layout_Orientation). Also, the interfaces are now adjectives (Orientable) and the enums have long names (*_Orientation). Pretty big patch, but no functional changes. Relates to T7863 Test Plan: Everything builds and passes tests. Elementary_tests show same behavior, including the "inverted" widgets, which are the only parts which received a bit of code changes. Proof: https://travis-ci.org/Enlightenment/efl/builds/536277282 Reviewers: zmike, bu5hm4n, cedric Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8946
Diffstat (limited to 'src/lib/elementary/efl_ui_slider_interval.c')
-rw-r--r--src/lib/elementary/efl_ui_slider_interval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/elementary/efl_ui_slider_interval.c b/src/lib/elementary/efl_ui_slider_interval.c
index 74131e5834..8256c7de22 100644
--- a/src/lib/elementary/efl_ui_slider_interval.c
+++ b/src/lib/elementary/efl_ui_slider_interval.c
@@ -45,7 +45,7 @@ _efl_ui_slider_interval_val_fetch(Evas_Object *obj, Efl_Ui_Slider_Interval_Data
else
efl_ui_drag_value_get(efl_part(wd->resize_obj, "efl.dragable.slider"),
&posx, &posy);
- if (efl_ui_dir_is_horizontal(sd->dir, EINA_TRUE)) pos = posx;
+ if (efl_ui_layout_orientation_is_horizontal(sd->dir, EINA_TRUE)) pos = posx;
else pos = posy;
if (elm_widget_is_legacy(obj))
@@ -54,7 +54,7 @@ _efl_ui_slider_interval_val_fetch(Evas_Object *obj, Efl_Ui_Slider_Interval_Data
else
efl_ui_drag_value_get(efl_part(wd->resize_obj, "efl.dragable2.slider"),
&posx2, &posy2);
- if (efl_ui_dir_is_horizontal(sd->dir, EINA_TRUE)) pos2 = posx2;
+ if (efl_ui_layout_orientation_is_horizontal(sd->dir, EINA_TRUE)) pos2 = posx2;
else pos2 = posy2;
val = (pos * (sd->val_max - sd->val_min)) + sd->val_min;
@@ -171,7 +171,7 @@ _efl_ui_slider_interval_down_knob(Evas_Object *obj, Efl_Ui_Slider_Interval_Data
&posx2, &posy2);
}
- if (efl_ui_dir_is_horizontal(sd->dir, EINA_TRUE))
+ if (efl_ui_layout_orientation_is_horizontal(sd->dir, EINA_TRUE))
{
diff1 = fabs(button_x - posx);
diff2 = fabs(button_x - posx2);