parent
4ed9b65e6a
commit
bfa68a6151
|
@ -191,13 +191,16 @@ static Eina_Bool
|
|||
_ephoto_list_populate_start(void *data, int type __UNUSED__, void *event __UNUSED__)
|
||||
{
|
||||
Ephoto_List_Browser *lb = data;
|
||||
char *parent_dir;
|
||||
char *parent_dir, p[PATH_MAX];
|
||||
|
||||
_todo_items_free(lb);
|
||||
_list_items_free(lb);
|
||||
elm_genlist_clear(lb->list);
|
||||
|
||||
parent_dir = ecore_file_dir_get(lb->ephoto->config->directory);
|
||||
snprintf(p, PATH_MAX, "%s/.e/e/fileman/favorites", getenv("HOME"));
|
||||
if (strcmp (lb->ephoto->config->directory, p))
|
||||
{
|
||||
if (parent_dir && strcmp(lb->ephoto->config->directory, "/"))
|
||||
{
|
||||
Elm_Genlist_Item_Class *ic;
|
||||
|
@ -209,6 +212,7 @@ _ephoto_list_populate_start(void *data, int type __UNUSED__, void *event __UNUSE
|
|||
elm_genlist_item_append
|
||||
(lb->list, ic, up_entry, NULL, ELM_GENLIST_ITEM_NONE, _change_dir, up_entry);
|
||||
}
|
||||
}
|
||||
|
||||
return ECORE_CALLBACK_PASS_ON;
|
||||
}
|
||||
|
|
|
@ -356,7 +356,7 @@ ephoto_directory_set(Ephoto *ephoto, const char *path)
|
|||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN(ephoto);
|
||||
|
||||
ephoto_title_set(ephoto, path);
|
||||
ephoto_title_set(ephoto, basename(path));
|
||||
eina_stringshare_replace(&ephoto->config->directory, path);
|
||||
if (ephoto->job.change_dir) ecore_job_del(ephoto->job.change_dir);
|
||||
ephoto->job.change_dir = ecore_job_add(_ephoto_change_dir, ephoto);
|
||||
|
|
Loading…
Reference in New Issue