diff options
Diffstat (limited to 'lib/ph-front/ph-front-main.c')
-rwxr-xr-x | lib/ph-front/ph-front-main.c | 7 |
1 files changed, 7 insertions, 0 deletions
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) { |