summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKicheolJeon <kc.jun@samsung.com>2013-04-05 10:28:39 (GMT)
committerKicheolJeon <kc.jun@samsung.com>2013-04-05 10:28:39 (GMT)
commit79b566ea3eb810aba86317f61360e2c6ec809b8a (patch)
treea32c5eb7edcdcb94031818469a02436456c4d0d7
parent646d14a8ffeb9a88be70883e1cd20a9160a1a178 (diff)
downloadphone-contacts-79b566ea3eb810aba86317f61360e2c6ec809b8a.zip
phone-contacts-79b566ea3eb810aba86317f61360e2c6ec809b8a.tar.gz
phone-contacts-79b566ea3eb810aba86317f61360e2c6ec809b8a.tar.bz2
Apply new API regarding window rotation by winmgr
Change-Id: Ib9d6bef6515b32420b99392cc87543ea7fd70c53
-rwxr-xr-xlib/dialer/ph-dialer-main.c4
-rwxr-xr-xlib/ph-front/ph-front-main.c7
-rwxr-xr-xphone/phone.c3
3 files changed, 13 insertions, 1 deletions
diff --git a/lib/dialer/ph-dialer-main.c b/lib/dialer/ph-dialer-main.c
index b0b19a8..fb43363 100755
--- a/lib/dialer/ph-dialer-main.c
+++ b/lib/dialer/ph-dialer-main.c
@@ -75,6 +75,8 @@ void* dialer_on_create(ui_gadget_h ug, enum ug_mode mode, service_h service, voi
p_retvm_if(NULL == parent, NULL, "ug_get_parent_layout() return NULL");
dial_d->ug = ug;
dial_d->win = ug_get_window();
+ elm_win_wm_rotation_available_rotations_set(dial_d->win, NULL, 0);
+ elm_win_wm_rotation_preferred_rotation_set(dial_d->win, 0);
bindtextdomain(PACKAGE, LOCALEDIR);
@@ -157,7 +159,7 @@ static void dialer_on_destroy(ui_gadget_h ug, service_h service, void *priv)
PH_FN_CALL;
if (!ug)
return;
-
+ elm_win_wm_rotation_preferred_rotation_set(ug_get_window(), -1);
evas_object_del(ug_get_layout(ug));
contacts_disconnect2();
}
diff --git a/lib/ph-front/ph-front-main.c b/lib/ph-front/ph-front-main.c
index 62242d0..f69e09a 100755
--- a/lib/ph-front/ph-front-main.c
+++ b/lib/ph-front/ph-front-main.c
@@ -70,6 +70,11 @@ void *phoneui_on_create(ui_gadget_h ug, enum ug_mode mode, service_h service, vo
phoneui_d = priv;
phoneui_d->win = ug_get_window();
elm_win_conformant_set(phoneui_d->win, EINA_TRUE);
+
+ elm_win_wm_rotation_available_rotations_set(phoneui_d->win, NULL, 0);
+ elm_win_wm_rotation_preferred_rotation_set(phoneui_d->win, 0);
+
+
phoneui_d->select_tab = PH_VIEW_NONE;
phoneui_d->ug = ug;
@@ -115,6 +120,8 @@ void phoneui_on_destroy(ui_gadget_h ug, service_h service, void *priv)
if (!ug)
return;
+ elm_win_wm_rotation_preferred_rotation_set(ug_get_window(), -1);
+
free(phoneui_d->ug_data);
if (phoneui_d && phoneui_d->ug == NULL) {
diff --git a/phone/phone.c b/phone/phone.c
index a162967..6955545 100755
--- a/phone/phone.c
+++ b/phone/phone.c
@@ -161,6 +161,9 @@ static bool phapp_create(void *data)
p_retvm_if(NULL == win, -1, "phapp_create_win() Failed");
ad->win = win;
+ elm_win_wm_rotation_available_rotations_set(ad->win, NULL, 0);
+ elm_win_wm_rotation_preferred_rotation_set(ad->win, 0);
+
evas_object_show(win);
#ifdef _PHONE_CONTACTS_DESKTOP_MODE_
evas_object_smart_callback_add(ad->win, "profile,changed", __win_profile_changed_cb, ad);