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);
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);
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) {
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);