From: Geunsun, Lee Date: Wed, 5 Oct 2016 12:42:55 +0000 (+0900) Subject: [TSAM-8480] 'Unnamed folder' Text not clear when tap X-Git-Tag: submit/tizen/20161005.125750~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d50262a75406feb401b0672ae5db1f4049785582;p=profile%2Fmobile%2Fapps%2Fnative%2Fhomescreen-efl.git [TSAM-8480] 'Unnamed folder' Text not clear when tap Change-Id: Idc0e389e093422888442fd53357be83c3380ab69 --- diff --git a/src/apps_view.c b/src/apps_view.c index b5cd44c..13f69e0 100755 --- a/src/apps_view.c +++ b/src/apps_view.c @@ -155,6 +155,9 @@ static int __apps_view_get_index(int page_index, int x, int y); static void __apps_view__set_icon_label_style(app_data_t *item, view_state_t state); static void __apps_view_folder_entry_done_cb(void *data, Evas_Object *obj, void *event_info); +static void __apps_view_folder_entry_focused_cb(void *data, Evas_Object *obj, void *event_info); +static void __apps_view_folder_entry_unfocused_cb(void *data, Evas_Object *obj, void *event_info); + Evas_Object *apps_view_create(Evas_Object *win) { @@ -1132,13 +1135,15 @@ static void __apps_view_open_folder_popup(app_data_t *item) elm_entry_scrollable_set(entry, EINA_TRUE); evas_object_show(entry); - char style_string[STR_MAX] = {0, }; + char style_string[STR_MAX] = { 0, }; snprintf(style_string, sizeof(style_string), "%s", _("IDS_COM_HEADER_UNNAMED_FOLDER")); elm_object_part_text_set(entry, "elm.guide", style_string); elm_entry_input_panel_return_key_type_set(entry, ELM_INPUT_PANEL_RETURN_KEY_TYPE_DONE); - evas_object_smart_callback_add(entry, "activated", __apps_view_folder_entry_done_cb, entry); + evas_object_smart_callback_add(entry, "activated", __apps_view_folder_entry_done_cb, NULL); + evas_object_smart_callback_add(entry, "focused", __apps_view_folder_entry_focused_cb, NULL); + evas_object_smart_callback_add(entry, "unfocused", __apps_view_folder_entry_unfocused_cb, NULL); elm_entry_text_style_user_push(entry, "DEFAULT='font=Tizen:style=Regular align=center color=#4DE7FFFF font_size=40 wrap=none'"); elm_entry_entry_set(entry, apps_view_s.opened_folder->label_str); @@ -1818,3 +1823,15 @@ static void __apps_view_folder_entry_done_cb(void *data, Evas_Object *obj, void elm_entry_input_panel_hide(obj); elm_object_focus_set(obj, EINA_FALSE); } + +static void __apps_view_folder_entry_focused_cb(void *data, Evas_Object *obj, void *event_info) +{ + elm_object_part_text_set(obj, "elm.guide", ""); +} + +static void __apps_view_folder_entry_unfocused_cb(void *data, Evas_Object *obj, void *event_info) +{ + char style_string[STR_MAX] = { 0, }; + snprintf(style_string, sizeof(style_string), "%s", _("IDS_COM_HEADER_UNNAMED_FOLDER")); + elm_object_part_text_set(obj, "elm.guide", style_string); +}