From: WooHyun Jung <wh0705.jung@samsung.com>

Fix missing clicked signal from entry.



SVN revision: 57663
This commit is contained in:
WooHyun Jung 2011-03-10 10:12:32 +00:00 committed by Carsten Haitzler
parent 674efd2730
commit 0786e6c1bf
2 changed files with 12 additions and 4 deletions

View File

@ -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.

View 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