okra pushed a commit to branch master.

http://git.enlightenment.org/apps/ephoto.git/commit/?id=8ffd43dd601af9cda6d5727c8315bc10985520da

commit 8ffd43dd601af9cda6d5727c8315bc10985520da
Author: Stephen Houston <smhousto...@gmail.com>
Date:   Mon Jan 25 21:36:33 2016 -0600

    Ephoto: Deselect current directory when clicking empty space in file 
selector.
---
 src/bin/ephoto_single_browser.c | 2 +-
 src/bin/ephoto_thumb_browser.c  | 9 +++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/bin/ephoto_single_browser.c b/src/bin/ephoto_single_browser.c
index 23fc22b..eb2b028 100644
--- a/src/bin/ephoto_single_browser.c
+++ b/src/bin/ephoto_single_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,
diff --git a/src/bin/ephoto_thumb_browser.c b/src/bin/ephoto_thumb_browser.c
index c9b2b5e..fca1eba 100644
--- a/src/bin/ephoto_thumb_browser.c
+++ b/src/bin/ephoto_thumb_browser.c
@@ -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;
 

-- 


Reply via email to