summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-03-07 14:46:09 -0500
committerCedric BAIL <cedric.bail@free.fr>2019-03-07 14:44:06 -0800
commitd8b46509c736886b0b4650009ad6036e51186346 (patch)
tree422f812e65914d3e0b05786202a375e7a4ef55cc
parent33f1094fd7b83fce78f0a11a6264a0c521d52daa (diff)
efl_ui_win: do not use Efl.Orient
windows are not restricted to 90 degree rotations. also this type shouldn't be stable yet ref T7511 ref T7726 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8239
-rw-r--r--src/lib/elementary/efl_ui_win.c4
-rw-r--r--src/lib/elementary/efl_ui_win.eo4
2 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 24b88f6f08..4989adf344 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -1662,7 +1662,7 @@ _win_rotate(Evas_Object *obj, Efl_Ui_Win_Data *sd, int rotation, Eina_Bool resiz
1662} 1662}
1663 1663
1664EOLIAN static void 1664EOLIAN static void
1665_efl_ui_win_win_rotation_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd, Efl_Orient rotation) 1665_efl_ui_win_win_rotation_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd, int rotation)
1666{ 1666{
1667 Efl_Ui_Widget *widget; 1667 Efl_Ui_Widget *widget;
1668 Eina_Iterator *it; 1668 Eina_Iterator *it;
@@ -1682,7 +1682,7 @@ _efl_ui_win_win_rotation_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd, Efl_Orien
1682 } 1682 }
1683} 1683}
1684 1684
1685EOLIAN static Efl_Orient 1685EOLIAN static int
1686_efl_ui_win_win_rotation_get(const Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd) 1686_efl_ui_win_win_rotation_get(const Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd)
1687{ 1687{
1688 return pd->rotation; 1688 return pd->rotation;
diff --git a/src/lib/elementary/efl_ui_win.eo b/src/lib/elementary/efl_ui_win.eo
index 96499a7a56..13a3306f72 100644
--- a/src/lib/elementary/efl_ui_win.eo
+++ b/src/lib/elementary/efl_ui_win.eo
@@ -1,5 +1,3 @@
1import efl_orientation;
2
3enum Efl.Ui.Win_Type 1enum Efl.Ui.Win_Type
4{ 2{
5 [[Defines the types of window that can be created 3 [[Defines the types of window that can be created
@@ -757,7 +755,7 @@ class @beta Efl.Ui.Win extends Efl.Ui.Widget implements Efl.Canvas.Scene, Efl.Ac
757 get { 755 get {
758 } 756 }
759 values { 757 values {
760 rotation : Efl.Orient; [[The rotation of the window]] 758 rotation : int; [[The rotation of the window]]
761 } 759 }
762 } 760 }
763 @property focus_highlight_enabled { 761 @property focus_highlight_enabled {