summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2014-01-26 02:19:23 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-01-26 02:19:23 +0900
commit401c3b8226ed36557df0a19d48af577396e6e2a9 (patch)
tree253a9dd462b851015c48c08457a34f095c4016da
parent534610bdecfd7b8f283f94918ff152841e1626cc (diff)
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.
-rw-r--r--src/lib/elc_fileselector.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/elc_fileselector.c b/src/lib/elc_fileselector.c
index 040ae0459..65a9b0493 100644
--- a/src/lib/elc_fileselector.c
+++ b/src/lib/elc_fileselector.c
@@ -1038,7 +1038,7 @@ _on_text_activated(void *data,
1038 1038
1039 ELM_FILESELECTOR_DATA_GET(fs, sd); 1039 ELM_FILESELECTOR_DATA_GET(fs, sd);
1040 1040
1041 path = elm_object_text_get(obj); 1041 path = elm_widget_part_text_get(obj, NULL);
1042 1042
1043 if (!ecore_file_exists(path)) 1043 if (!ecore_file_exists(path))
1044 { 1044 {
@@ -1077,11 +1077,12 @@ _on_text_activated(void *data,
1077 Elm_Object_Item *item = elm_genlist_first_item_get(sd->files_view); 1077 Elm_Object_Item *item = elm_genlist_first_item_get(sd->files_view);
1078 while (item) 1078 while (item)
1079 { 1079 {
1080 const char *item_path = elm_object_item_data_get(item); 1080 const char *item_path = elm_widget_item_data_get(item);
1081 if (!strcmp(item_path, path)) 1081 if (!strcmp(item_path, path))
1082 { 1082 {
1083 elm_genlist_item_selected_set(item, EINA_TRUE); 1083 elm_genlist_item_selected_set(item, EINA_TRUE);
1084 elm_object_text_set(sd->name_entry, ecore_file_file_get(path)); 1084 elm_widget_part_text_set(sd->name_entry, NULL,
1085 ecore_file_file_get(path));
1085 break; 1086 break;
1086 } 1087 }
1087 item = elm_genlist_item_next_get(item); 1088 item = elm_genlist_item_next_get(item);
@@ -1096,7 +1097,8 @@ _on_text_activated(void *data,
1096 if (!strcmp(item_path, path)) 1097 if (!strcmp(item_path, path))
1097 { 1098 {
1098 elm_gengrid_item_selected_set(item, EINA_TRUE); 1099 elm_gengrid_item_selected_set(item, EINA_TRUE);
1099 elm_object_text_set(sd->name_entry, ecore_file_file_get(path)); 1100 elm_widget_part_text_set(sd->name_entry, NULL,
1101 ecore_file_file_get(path));
1100 break; 1102 break;
1101 } 1103 }
1102 item = elm_gengrid_item_next_get(item); 1104 item = elm_gengrid_item_next_get(item);