diff options
author | KicheolJeon <kc.jun@samsung.com> | 2013-04-05 19:28:39 +0900 |
---|---|---|
committer | KicheolJeon <kc.jun@samsung.com> | 2013-04-05 19:28:39 +0900 |
commit | 79b566ea3eb810aba86317f61360e2c6ec809b8a (patch) | |
tree | a32c5eb7edcdcb94031818469a02436456c4d0d7 | |
parent | 646d14a8ffeb9a88be70883e1cd20a9160a1a178 (diff) | |
download | phone-contacts-79b566ea3eb810aba86317f61360e2c6ec809b8a.tar.gz phone-contacts-79b566ea3eb810aba86317f61360e2c6ec809b8a.tar.bz2 phone-contacts-79b566ea3eb810aba86317f61360e2c6ec809b8a.zip |
Apply new API regarding window rotation by winmgr
Change-Id: Ib9d6bef6515b32420b99392cc87543ea7fd70c53
-rwxr-xr-x | lib/dialer/ph-dialer-main.c | 4 | ||||
-rwxr-xr-x | lib/ph-front/ph-front-main.c | 7 | ||||
-rwxr-xr-x | phone/phone.c | 3 |
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); |