[TSAM-8480] 'Unnamed folder' Text not clear when tap 63/91063/2
authorGeunsun, Lee <gs86.lee@samsung.com>
Wed, 5 Oct 2016 12:42:55 +0000 (21:42 +0900)
committerGeunsun, Lee <gs86.lee@samsung.com>
Wed, 5 Oct 2016 12:52:38 +0000 (21:52 +0900)
Change-Id: Idc0e389e093422888442fd53357be83c3380ab69

src/apps_view.c

index b5cd44c..13f69e0 100755 (executable)
@@ -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), "<font_size=40><color=#60606060><align=center>%s</align></color></font_size>", _("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), "<font_size=40><color=#60606060><align=center>%s</align></color></font_size>", _("IDS_COM_HEADER_UNNAMED_FOLDER"));
+       elm_object_part_text_set(obj, "elm.guide", style_string);
+}