okra pushed a commit to branch master.

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

commit d5cb51942249c22dd6e9edabc3820e47f3d96912
Author: Stephen okra Houston <smhousto...@gmail.com>
Date:   Tue Dec 15 12:44:54 2015 -0600

    Ephoto: Clear the grid selection when clicking in the empty space.
---
 src/bin/ephoto_thumb_browser.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/bin/ephoto_thumb_browser.c b/src/bin/ephoto_thumb_browser.c
index 0e7c671..054b4ba 100644
--- a/src/bin/ephoto_thumb_browser.c
+++ b/src/bin/ephoto_thumb_browser.c
@@ -2854,6 +2854,20 @@ _grid_mouse_up_cb(void *data, Evas *e EINA_UNUSED, 
Evas_Object *obj EINA_UNUSED,
              tb->last_sel = item;
           }
      }
+   if (info->button == 1 && !item)
+     {
+        Eina_List *sel = eina_list_clone(selected);
+        Eina_List *node;
+        Elm_Object_Item *it;
+        if (eina_list_count(sel) > 0)
+          {
+             EINA_LIST_FOREACH(sel, node, it)
+               {
+                  elm_gengrid_item_selected_set(it, EINA_FALSE);
+               }
+             eina_list_free(sel);
+          }
+     }
    if (info->button != 3)
       return;
 

-- 


Reply via email to