Ephoto: Deselect current directory when clicking empty space in file selector.

This commit is contained in:
Stephen Houston 2016-01-25 21:36:33 -06:00
parent bcfd488e0f
commit 8ffd43dd60
2 changed files with 10 additions and 1 deletions

View File

@ -1311,7 +1311,7 @@ _save_image_as_done(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
{
char *dir = ecore_file_dir_get(buf);
if (!strcmp(dir, sb->ephoto->config->directory))
if (strcmp(dir, sb->ephoto->config->directory))
{
ephoto_thumb_browser_fsel_clear(sb->ephoto);
ephoto_directory_set(sb->ephoto, dir, NULL,

View File

@ -3131,6 +3131,15 @@ _fsel_mouse_up_cb(void *data, Evas *e EINA_UNUSED,
_on_list_selected(tb, NULL, item);
}
}
else if (!item)
{
Elm_Object_Item *it;
it = elm_genlist_selected_item_get(tb->fsel);
if (it)
elm_genlist_item_selected_set(it, EINA_FALSE);
ephoto_directory_set(tb->ephoto, tb->ephoto->top_directory, NULL, 0, 1);
}
if (info->button != 3)
return;