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

v-1.6.0
Stephen Houston 7 years ago
parent bcfd488e0f
commit 8ffd43dd60
  1. 2
      src/bin/ephoto_single_browser.c
  2. 9
      src/bin/ephoto_thumb_browser.c

@ -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…
Cancel
Save