From a493f6f7fb7b0b7840c76c8ab165db08ecab27af Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Thu, 23 May 2013 16:04:27 +0900 Subject: [PATCH] Use the window manager rotation Change-Id: I8dff153fb2e5de225f052fe269f5c12ece1f7fc0 --- ism/demos/isf_demo_efl.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ism/demos/isf_demo_efl.cpp b/ism/demos/isf_demo_efl.cpp index c4093a8..fabf56c 100644 --- a/ism/demos/isf_demo_efl.cpp +++ b/ism/demos/isf_demo_efl.cpp @@ -257,6 +257,7 @@ static Evas_Object* create_win (const char *name) { Evas_Object *eo = NULL; int w, h; + const int rots[4] = { 0, 90, 180, 270 }; eo = elm_win_util_standard_add (name, name); if (eo != NULL) { @@ -266,6 +267,10 @@ static Evas_Object* create_win (const char *name) evas_object_resize (eo, w, h); } + if (elm_win_wm_rotation_supported_get (eo)) { + elm_win_wm_rotation_available_rotations_set (eo, (const int *)&rots, 4); + } + return eo; } @@ -395,8 +400,6 @@ static int app_create (void *data) ecore_event_handler_add (ECORE_EVENT_KEY_DOWN, _keydown_event, ad); ecore_event_handler_add (ECORE_EVENT_KEY_UP, _keyup_event, ad); - appcore_set_rotation_cb (_rotate_cb, ad); - appcore_measure_time (); return 0; -- 2.7.4