diff options
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/dialer/ph-dialer-main.c | 4 | ||||
-rwxr-xr-x | lib/ph-front/ph-front-main.c | 7 |
2 files changed, 10 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) { |