forked from enlightenment/efl
parent
e5fe7f8d53
commit
fc2c036041
|
@ -267,6 +267,7 @@ _sel(void *data, Evas_Object *obj __UNUSED__, void *event_info)
|
|||
struct sel_data *sd;
|
||||
Widget_Data *wd;
|
||||
void *old_sd;
|
||||
char *dir;
|
||||
|
||||
wd = elm_widget_data_get(data);
|
||||
if (!wd) return;
|
||||
|
@ -275,6 +276,17 @@ _sel(void *data, Evas_Object *obj __UNUSED__, void *event_info)
|
|||
sd->fs = data;
|
||||
sd->path = elm_genlist_item_data_get(event_info);
|
||||
|
||||
dir = ecore_file_dir_get(sd->path);
|
||||
if (dir)
|
||||
{
|
||||
eina_stringshare_replace(&wd->path, dir);
|
||||
free(dir);
|
||||
}
|
||||
else
|
||||
{
|
||||
eina_stringshare_replace(&wd->path, "");
|
||||
}
|
||||
|
||||
if (wd->sel_idler)
|
||||
{
|
||||
old_sd = ecore_idler_del(wd->sel_idler);
|
||||
|
@ -634,7 +646,7 @@ elm_fileselector_buttons_ok_cancel_set(Evas_Object *obj, Eina_Bool visible)
|
|||
{
|
||||
ELM_CHECK_WIDTYPE(obj, widtype);
|
||||
Widget_Data *wd = elm_widget_data_get(obj);
|
||||
Evas_Object *box, *bt;
|
||||
Evas_Object *bt;
|
||||
if (!wd) return;
|
||||
|
||||
if (visible)
|
||||
|
|
|
@ -214,7 +214,8 @@ _selection_done(void *data, Evas_Object *obj __UNUSED__, void *event_info)
|
|||
wd->fsw = NULL;
|
||||
evas_object_del(del);
|
||||
|
||||
evas_object_smart_callback_call(wd->self, SIG_FILE_CHOSEN, event_info);
|
||||
evas_object_smart_callback_call(wd->self, SIG_FILE_CHOSEN,
|
||||
(void *)wd->fsd.path);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue