From 10a943d4c1b45a47a394dfc5fe9e316fc12f033b Mon Sep 17 00:00:00 2001 From: "shoum.chen@samsung.com" Date: Wed, 9 Sep 2015 10:33:29 +0800 Subject: [PATCH] Delete resize for window. Change-Id: I6cf7d715fae035eedd4ccf0be217b3ec66eab6c4 Signed-off-by: shoum.chen@samsung.com --- im_setting_list/input_method_setting_list_ui.cpp | 8 +------- im_setting_selector/input_method_setting_selector_ui.cpp | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/im_setting_list/input_method_setting_list_ui.cpp b/im_setting_list/input_method_setting_list_ui.cpp index c616d8c..777981a 100644 --- a/im_setting_list/input_method_setting_list_ui.cpp +++ b/im_setting_list/input_method_setting_list_ui.cpp @@ -143,7 +143,6 @@ static Evas_Object * im_setting_list_main_window_create(const char *name, int app_type) { Evas_Object *eo = NULL; - int w = -1, h = -1; eo = elm_win_add(NULL, name, ELM_WIN_BASIC); if (eo) { elm_win_title_set(eo, name); @@ -151,12 +150,7 @@ im_setting_list_main_window_create(const char *name, int app_type) elm_win_alpha_set(eo, EINA_FALSE); elm_win_conformant_set(eo, EINA_TRUE); elm_win_autodel_set(eo, EINA_TRUE); - elm_win_screen_size_get(eo, NULL, NULL, &w, &h); - if (w == -1 || h == -1) { - LOGW("elm_win_screen_size_get() is failed\n"); - return NULL; - } - evas_object_resize(eo, w, h); + if (app_type != APP_TYPE_SETTING_NO_ROTATION) { int rots[4] = {0, 90, 180, 270}; elm_win_wm_rotation_available_rotations_set(eo, rots, 4); diff --git a/im_setting_selector/input_method_setting_selector_ui.cpp b/im_setting_selector/input_method_setting_selector_ui.cpp index a103d81..7743ec5 100644 --- a/im_setting_selector/input_method_setting_selector_ui.cpp +++ b/im_setting_selector/input_method_setting_selector_ui.cpp @@ -57,7 +57,6 @@ static Evas_Object * im_setting_selector_main_window_create(const char *name, int app_type) { Evas_Object *eo = NULL; - int w = -1, h = -1; eo = elm_win_add(NULL, name, ELM_WIN_BASIC); if (eo) { @@ -66,12 +65,7 @@ im_setting_selector_main_window_create(const char *name, int app_type) elm_win_alpha_set(eo, EINA_TRUE); elm_win_conformant_set(eo, EINA_TRUE); elm_win_autodel_set(eo, EINA_TRUE); - elm_win_screen_size_get(eo, NULL, NULL, &w, &h); - if (w == -1 || h == -1) { - LOGW("elm_win_screen_size_get() is failed\n"); - return NULL; - } - evas_object_resize(eo, w, h); + if (app_type != APP_TYPE_SETTING_NO_ROTATION) { int rots[4] = {0, 90, 180, 270}; elm_win_wm_rotation_available_rotations_set(eo, rots, 4); -- 2.34.1