diff options
Diffstat (limited to 'ug-wifidirect/src/wfd_ug.c')
-rwxr-xr-x[-rw-r--r--] | ug-wifidirect/src/wfd_ug.c | 35 |
1 files changed, 5 insertions, 30 deletions
diff --git a/ug-wifidirect/src/wfd_ug.c b/ug-wifidirect/src/wfd_ug.c index de5db8c..5d6ab85 100644..100755 --- a/ug-wifidirect/src/wfd_ug.c +++ b/ug-wifidirect/src/wfd_ug.c @@ -140,28 +140,6 @@ static void __wfd_hotspot_mode_vconf_change_cb(keynode_t *key, void *data) } -Ea_Theme_Color_Table *_color_table_set(void) -{ - Ea_Theme_Color_Table *table; - - table = ea_theme_color_table_new(COLOR_TABLE); - DBG(LOG_INFO, "Wi-Fi direct color table : %p", table); - ea_theme_colors_set(table, EA_THEME_STYLE_DEFAULT); - - return table; -} - -Ea_Theme_Font_Table *_font_table_set(void) -{ - Ea_Theme_Font_Table *table; - - table = ea_theme_color_table_new(FONT_TABLE); - DBG(LOG_INFO, "Wi-Fi direct font table : %p", table); - ea_theme_fonts_set(table); - - return table; -} - /** * This function let the ug create backgroud * @return backgroud @@ -343,8 +321,11 @@ static void *on_create(ui_gadget_h ug, enum ug_mode mode, app_control_h control, return NULL; } - elm_win_wm_rotation_available_rotations_set(ugd->win, rots, 1); - + /* set rotation */ + if (elm_win_wm_rotation_supported_get(ugd->win)) { + int rots[4] = {0, 90, 180, 270}; + elm_win_wm_rotation_available_rotations_set(ugd->win, (const int *)(&rots), 4); + } /* check the input parameters from app at first */ ugd->wfds = NULL; @@ -479,12 +460,6 @@ static void *on_create(ui_gadget_h ug, enum ug_mode mode, app_control_h control, return NULL; } - /* Enablee Changeable UI feature */ - ea_theme_changeable_ui_enabled_set(EINA_TRUE); - - ugd->color_table = _color_table_set(); - ugd->font_table = _font_table_set(); - /* draw UI */ initialize_gen_item_class(); create_wfd_ug_view(ugd); |