forked from enlightenment/efl
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:
parent
04e660c5c7
commit
f27ff2fbf3
|
@ -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
|
2013-02-16 Paulo C. A. Cavalcanti Jr
|
||||||
|
|
||||||
* Evas: add pixels_alpha_get to evas engine.
|
* Evas: add pixels_alpha_get to evas engine.
|
||||||
|
|
1
NEWS
1
NEWS
|
@ -171,3 +171,4 @@ Fixes:
|
||||||
* fix bug not to display preedit string with PREEDIT_TYPE_NONE style
|
* 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
|
* Fix bug candidate word couldn't be selected with up/down key in the preedit status
|
||||||
* Edje textblock: Improved textblock fit.
|
* Edje textblock: Improved textblock fit.
|
||||||
|
* fix anchor clicked mouse signals for selection-enabled entries
|
||||||
|
|
|
@ -688,17 +688,18 @@ _edje_anchor_mouse_up_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_
|
||||||
(!rp->typedata.text)) return;
|
(!rp->typedata.text)) return;
|
||||||
en = rp->typedata.text->entry_data;
|
en = rp->typedata.text->entry_data;
|
||||||
ignored = rp->part->ignore_flags & ev->event_flags;
|
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;
|
n = an->name;
|
||||||
if (!n) n = "";
|
if (!n) n = "";
|
||||||
len = 200 + strlen(n);
|
len = 200 + strlen(n);
|
||||||
buf = alloca(len);
|
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);
|
if ((!ev->event_flags) || (!ignored))
|
||||||
_edje_emit(rp->edje, buf, rp->part->name);
|
{
|
||||||
|
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))
|
if ((rp->still_in) && (rp->clicked_button == ev->button) && (!ignored))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue