fix damn edje entry anchor click signals: this fixes anchor clicking in elm_entry widgets when using a desktop profile which has been broken for over a year

ticket #1179
This commit is contained in:
discomfitor 2013-02-17 14:18:46 +00:00
parent 04e660c5c7
commit f27ff2fbf3
3 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2013-02-17 Mike Blumenkrantz
* fix anchor clicked mouse signals for selection-enabled entries
2013-02-16 Paulo C. A. Cavalcanti Jr
* Evas: add pixels_alpha_get to evas engine.

1
NEWS
View File

@ -171,3 +171,4 @@ Fixes:
* fix bug not to display preedit string with PREEDIT_TYPE_NONE style
* Fix bug candidate word couldn't be selected with up/down key in the preedit status
* Edje textblock: Improved textblock fit.
* fix anchor clicked mouse signals for selection-enabled entries

View File

@ -688,17 +688,18 @@ _edje_anchor_mouse_up_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_
(!rp->typedata.text)) return;
en = rp->typedata.text->entry_data;
ignored = rp->part->ignore_flags & ev->event_flags;
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))
if ((rp->part->select_mode != EDJE_ENTRY_SELECTION_MODE_EXPLICIT) ||
(!en->select_allow))
{
snprintf(buf, len, "anchor,mouse,up,%i,%s", ev->button, n);
_edje_emit(rp->edje, buf, rp->part->name);
if ((!ev->event_flags) || (!ignored))
{
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))
{