summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <cmarcelo@gmail.com>2008-04-04 00:07:07 +0000
committerCaio Marcelo de Oliveira Filho <cmarcelo@gmail.com>2008-04-04 00:07:07 +0000
commitf674fc975b60f2cc6bb22845c675343ead7b0016 (patch)
tree2ce907eb10a87d6ca9d049ad05d580be712c284d
parent1b73237787f417bb177a5ae41878fd805c388e5d (diff)
Fix mouse_in/out flag checking.
If we have event_flags and they match any bit in ignore_flags, return. SVN revision: 34185
-rw-r--r--legacy/edje/src/lib/edje_callbacks.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/legacy/edje/src/lib/edje_callbacks.c b/legacy/edje/src/lib/edje_callbacks.c
index 35eb3cb..6e8e922 100644
--- a/legacy/edje/src/lib/edje_callbacks.c
+++ b/legacy/edje/src/lib/edje_callbacks.c
@@ -34,9 +34,9 @@ _edje_mouse_in_cb(void *data, Evas * e, Evas_Object * obj, void *event_info)
34 ev = event_info; 34 ev = event_info;
35 ed = data; 35 ed = data;
36 rp = evas_object_data_get(obj, "real_part"); 36 rp = evas_object_data_get(obj, "real_part");
37 if ((!rp) || 37 if ((!rp) ||
38 ((ev->event_flags) && 38 ((ev->event_flags) &&
39 (!(rp->part->ignore_flags & ev->event_flags)))) return; 39 (rp->part->ignore_flags & ev->event_flags))) return;
40 _edje_emit(ed, "mouse,in", rp->part->name); 40 _edje_emit(ed, "mouse,in", rp->part->name);
41 return; 41 return;
42 e = NULL; 42 e = NULL;
@@ -52,9 +52,9 @@ _edje_mouse_out_cb(void *data, Evas * e, Evas_Object * obj, void *event_info)
52 ev = event_info; 52 ev = event_info;
53 ed = data; 53 ed = data;
54 rp = evas_object_data_get(obj, "real_part"); 54 rp = evas_object_data_get(obj, "real_part");
55 if ((!rp) || 55 if ((!rp) ||
56 ((ev->event_flags) && 56 ((ev->event_flags) &&
57 (!(rp->part->ignore_flags & ev->event_flags)))) return; 57 (rp->part->ignore_flags & ev->event_flags))) return;
58 _edje_emit(ed, "mouse,out", rp->part->name); 58 _edje_emit(ed, "mouse,out", rp->part->name);
59 return; 59 return;
60 e = NULL; 60 e = NULL;