Evas_Object *edje;
Evas_Object *button;
Evas_Object *entry;
+ char *path;
};
static const char *widtype = NULL;
{
Widget_Data *wd = elm_widget_data_get(data);
const char *file = event_info;
- elm_object_text_set(wd->entry, file);
+ char *s;
+
+ s = elm_entry_utf8_to_markup(file);
+ if (!s) return;
+ elm_object_text_set(wd->entry, s);
+ free(s);
evas_object_smart_callback_call(data, SIG_FILE_CHOSEN, event_info);
}
_del_hook(Evas_Object *obj)
{
Widget_Data *wd = elm_widget_data_get(obj);
+ if (wd->path) free(wd->path);
free(wd);
}
{
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
+ char *s;
+
if (!wd) return;
elm_fileselector_button_path_set(wd->button, path);
- elm_object_text_set(wd->entry, path);
+ s = elm_entry_utf8_to_markup(path);
+ if (s)
+ {
+ elm_object_text_set(wd->entry, s);
+ free(s);
+ }
}
EAPI const char *
{
ELM_CHECK_WIDTYPE(obj, widtype) NULL;
Widget_Data *wd = elm_widget_data_get(obj);
+
if (!wd) return NULL;
- return elm_object_text_get(wd->entry);
+ if (wd->path) free(wd->path);
+ wd->path = elm_entry_markup_to_utf8(elm_object_text_get(wd->entry));
+ return wd->path;
}
EAPI void