hermet pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=e7500d3707c144b975954c76d189561416ac520e

commit e7500d3707c144b975954c76d189561416ac520e
Author: ChunEon Park <her...@hermet.pe.kr>
Date:   Sat Mar 8 03:51:25 2014 +0900

    entry - send selection,cleared signal if a selection is dismissed.
    
    when the selection none was requested, the selection won't be cleared 
without the signal callback.
    
    @fix
---
 src/lib/elm_entry.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c
index c995522..4e38664 100644
--- a/src/lib/elm_entry.c
+++ b/src/lib/elm_entry.c
@@ -4059,6 +4059,9 @@ _select_none(Eo *obj EINA_UNUSED, void *_pd, va_list 
*list EINA_UNUSED)
             (sd->entry_edje, "elm.text", EINA_FALSE);
         edje_object_signal_emit(sd->entry_edje, "elm,state,select,off", "elm");
      }
+   if (sd->have_selection)
+     evas_object_smart_callback_call(obj, SIG_SELECTION_CLEARED, NULL);
+
    sd->have_selection = EINA_FALSE;
    edje_object_part_text_select_none(sd->entry_edje, "elm.text");
 

-- 


Reply via email to