From d8b46509c736886b0b4650009ad6036e51186346 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 7 Mar 2019 14:46:09 -0500 Subject: [PATCH] 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 Differential Revision: https://phab.enlightenment.org/D8239 --- src/lib/elementary/efl_ui_win.c | 4 ++-- src/lib/elementary/efl_ui_win.eo | 4 +--- 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 } EOLIAN static void -_efl_ui_win_win_rotation_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd, Efl_Orient rotation) +_efl_ui_win_win_rotation_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd, int rotation) { Efl_Ui_Widget *widget; Eina_Iterator *it; @@ -1682,7 +1682,7 @@ _efl_ui_win_win_rotation_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd, Efl_Orien } } -EOLIAN static Efl_Orient +EOLIAN static int _efl_ui_win_win_rotation_get(const Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd) { 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 @@ -import efl_orientation; - enum Efl.Ui.Win_Type { [[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 get { } values { - rotation : Efl.Orient; [[The rotation of the window]] + rotation : int; [[The rotation of the window]] } } @property focus_highlight_enabled {