entry - send selection,cleared signal if a selection is dismissed.
authorChunEon Park <hermet@hermet.pe.kr>
Fri, 7 Mar 2014 18:51:25 +0000 (03:51 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Fri, 7 Mar 2014 18:54:44 +0000 (03:54 +0900)
when the selection none was requested, the selection won't be cleared without the signal callback.

@fix

src/lib/elm_entry.c

index c995522cb81d16b700919ab05d0bd767cb115398..4e386649d4dfc220ebe87dfb000c8eb47645f2a4 100644 (file)
@@ -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");