From 9b9a3ccc402a06f29bbba3d1e80910ab54267c12 Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Sun, 26 Jan 2014 02:19:23 +0900 Subject: [PATCH] fileselector - use the internal widget apis as possible. We already know some apis are just wrapping the internal widget apis. Iternally we don't need to call the external apis that have additional object validation checking. --- legacy/elementary/src/lib/elc_fileselector.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/legacy/elementary/src/lib/elc_fileselector.c b/legacy/elementary/src/lib/elc_fileselector.c index 040ae04591..65a9b04939 100644 --- a/legacy/elementary/src/lib/elc_fileselector.c +++ b/legacy/elementary/src/lib/elc_fileselector.c @@ -1038,7 +1038,7 @@ _on_text_activated(void *data, ELM_FILESELECTOR_DATA_GET(fs, sd); - path = elm_object_text_get(obj); + path = elm_widget_part_text_get(obj, NULL); if (!ecore_file_exists(path)) { @@ -1077,11 +1077,12 @@ _on_text_activated(void *data, Elm_Object_Item *item = elm_genlist_first_item_get(sd->files_view); while (item) { - const char *item_path = elm_object_item_data_get(item); + const char *item_path = elm_widget_item_data_get(item); if (!strcmp(item_path, path)) { elm_genlist_item_selected_set(item, EINA_TRUE); - elm_object_text_set(sd->name_entry, ecore_file_file_get(path)); + elm_widget_part_text_set(sd->name_entry, NULL, + ecore_file_file_get(path)); break; } item = elm_genlist_item_next_get(item); @@ -1096,7 +1097,8 @@ _on_text_activated(void *data, if (!strcmp(item_path, path)) { elm_gengrid_item_selected_set(item, EINA_TRUE); - elm_object_text_set(sd->name_entry, ecore_file_file_get(path)); + elm_widget_part_text_set(sd->name_entry, NULL, + ecore_file_file_get(path)); break; } item = elm_gengrid_item_next_get(item);