From: WooHyun Jung <wh0705.jung@samsung.com>
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 10 Mar 2011 10:12:32 +0000 (10:12 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 10 Mar 2011 10:12:32 +0000 (10:12 +0000)
Fix missing clicked signal from entry.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@57663 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

ChangeLog
src/lib/edje_entry.c

index 6f6b21e..22d0386 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -48,3 +48,6 @@
        This lets you limit the size of the font that will be used.
        Especially useful when using fit.
 
+2011-03-10  WooHyun Jung
+
+        * Fix: Emit clicked signal on entry if still in - missing.
index 977e1f9..d1b5c89 100644 (file)
@@ -620,15 +620,20 @@ _edje_anchor_mouse_up_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUS
    if ((rp->part->select_mode == EDJE_ENTRY_SELECTION_MODE_EXPLICIT) &&
        (en->select_allow))
       return;
+   n = an->name;
+   if (!n) n = "";
+   len = 200 + strlen(n);
+   buf = alloca(len);
    if ((!ev->event_flags) || (!ignored))
      {
-        n = an->name;
-        if (!n) n = "";
-        len = 200 + strlen(n);
-        buf = alloca(len);
         snprintf(buf, len, "anchor,mouse,up,%i,%s", ev->button, n);
         _edje_emit(rp->edje, buf, rp->part->name);
      }
+   if ((rp->still_in) && (rp->clicked_button == ev->button) && (!ignored))
+     {
+        snprintf(buf, len, "anchor,mouse,clicked,%i,%s", ev->button, n);
+        _edje_emit(rp->edje, buf, rp->part->name);
+     }
 }
 
 static void