aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2019-03-25 10:33:29 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-03-25 11:36:14 +0100
commit476010b018e3f7d76f3ed198ad2657fc18cc50c8 (patch)
tree3a90588aa94655905711805187867ed3aded812c /src/lib/elementary/efl_ui_win.c
parentefl_mono: remove unnecessary external function import (diff)
downloadefl-476010b018e3f7d76f3ed198ad2657fc18cc50c8.tar.gz
elm_win: fix correct rot variable in elm_win_rotation_get
Remove duplicated rotation variable Also, it fixes wrong layout class comparing. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8464
Diffstat (limited to 'src/lib/elementary/efl_ui_win.c')
-rw-r--r--src/lib/elementary/efl_ui_win.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 26c135b356..18e28fa080 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -213,7 +213,6 @@ struct _Efl_Ui_Win_Data
int norender;
int modal_count;
int response;
- int rotation;
Eina_Bool req_wh : 1;
Eina_Bool req_xy : 1;
@@ -1676,7 +1675,7 @@ _efl_ui_win_win_rotation_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd, int rotat
it = efl_ui_widget_tree_widget_iterator(obj);
EINA_ITERATOR_FOREACH(it, widget)
{
- if (!efl_isa(widget, EFL_UI_LAYOUT_CLASS)) continue;
+ if (!efl_isa(widget, EFL_UI_LAYOUT_BASE_CLASS)) continue;
if (efl_ui_layout_automatic_theme_rotation_get(widget))
efl_ui_layout_theme_rotation_apply(widget, rot);
@@ -1686,7 +1685,7 @@ _efl_ui_win_win_rotation_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd, int rotat
EOLIAN static int
_efl_ui_win_win_rotation_get(const Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd)
{
- return pd->rotation;
+ return pd->rot;
}
EAPI void