forked from enlightenment/ephoto
Ephoto: Deselect current directory when clicking empty space in file selector.
This commit is contained in:
parent
bcfd488e0f
commit
8ffd43dd60
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue