From d65f99f9dbc6fcd9cb66537b3b778add21a0843d Mon Sep 17 00:00:00 2001 From: Hyungdeuk Kim Date: Tue, 25 Jun 2013 16:35:21 +0900 Subject: [PATCH] apply rotation following device rotate Change-Id: I6711619eef8ee31947ad7dd20c78f8c6f6eaa3eb --- app-selector.c | 10 ++++++++-- packaging/org.tizen.app-selector.spec | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app-selector.c b/app-selector.c index cf9341f..7767b00 100755 --- a/app-selector.c +++ b/app-selector.c @@ -305,12 +305,18 @@ static int __app_create(void *data) ad->dpy = ecore_x_display_get(); ad->xwin = elm_win_xwindow_get(win); - +#ifdef ROTATE_ACTIVE_WIN ad->rotate = ecore_event_handler_add(ECORE_X_EVENT_CLIENT_MESSAGE, __rotate, (void *)ad); __as_rotate(ad->dpy, ad->xwin, win, ad); - +#else + if (elm_win_wm_rotation_supported_get(win)) + { + int rots[4] = { 0, 90, 180, 270 }; + elm_win_wm_rotation_available_rotations_set(win, (const int*)&rots, 4); + } +#endif evas_object_show(win); /* init internationalization */ diff --git a/packaging/org.tizen.app-selector.spec b/packaging/org.tizen.app-selector.spec index a13370e..6e6da21 100755 --- a/packaging/org.tizen.app-selector.spec +++ b/packaging/org.tizen.app-selector.spec @@ -1,7 +1,7 @@ Name: org.tizen.app-selector Summary: Application selector Version: 0.1.0 -Release: 90 +Release: 91 Group: TO_BE/FILLED_IN License: Flora Software License Source0: %{name}-%{version}.tar.gz -- 2.7.4