Elm fileselector_btn_ent: Fix code to use the new elm_object_text_set/get API.

SVN revision: 60994
This commit is contained in:
Tom Hacohen 2011-07-04 10:14:08 +00:00
parent 8031214260
commit 3ee5d802ab
2 changed files with 6 additions and 6 deletions

View File

@ -39,12 +39,12 @@ _folder_only_toggle(void *data,
if (!value)
{
elm_icon_standard_set(ic, "folder");
elm_fileselector_entry_button_label_set(fs_en, "Select a folder");
elm_object_text_set(fs_en, "Select a folder");
}
else
{
elm_icon_standard_set(ic, "file");
elm_fileselector_entry_button_label_set(fs_en, "Select a file");
elm_object_text_set(fs_en, "Select a file");
}
}
@ -96,7 +96,7 @@ test_fileselector_entry(void *data __UNUSED__,
elm_icon_standard_set(ic, "file");
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
fs_en = elm_fileselector_entry_add(win);
elm_fileselector_entry_button_label_set(fs_en, "Select a file");
elm_object_text_set(fs_en, "Select a file");
elm_fileselector_entry_button_icon_set(fs_en, ic);
evas_object_size_hint_weight_set(fs_en, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(fs_en, EVAS_HINT_FILL, EVAS_HINT_FILL);

View File

@ -29,7 +29,7 @@ external_fileselector_entry_state_set(void *data __UNUSED__, Evas_Object *obj, c
else return;
if (p->label)
elm_fileselector_entry_button_label_set(obj, p->label);
elm_object_text_set(obj, p->label);
if (p->icon) elm_fileselector_entry_button_icon_set(obj, p->icon);
if (p->fs.path) elm_fileselector_entry_selected_set(obj, p->fs.path);
if (p->fs.is_save_set)
@ -49,7 +49,7 @@ external_fileselector_entry_param_set(void *data __UNUSED__, Evas_Object *obj, c
{
if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
{
elm_fileselector_entry_button_label_set(obj, param->s);
elm_object_text_set(obj, param->s);
return EINA_TRUE;
}
}
@ -117,7 +117,7 @@ external_fileselector_entry_param_get(void *data __UNUSED__, const Evas_Object *
{
if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
{
param->s = elm_fileselector_entry_button_label_get(obj);
param->s = elm_object_text_get(obj);
return EINA_TRUE;
}
}