From e62783b6b057471b2d4e39b04dc394d394bd31b4 Mon Sep 17 00:00:00 2001 From: raster Date: Sun, 25 Apr 2010 13:57:41 +0000 Subject: [PATCH] and dont mix anchors and items - for now. for now now way to "get" all the items. mulling over how an item href name will map to having an evas object attached/supplied (once there, its' easy to just control the object like href objects, selection and cursor objects are). git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48311 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/edje_entry.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/lib/edje_entry.c b/src/lib/edje_entry.c index 2fa82a9..e4b721f 100644 --- a/src/lib/edje_entry.c +++ b/src/lib/edje_entry.c @@ -745,12 +745,7 @@ _anchors_update(Evas_Textblock_Cursor *c __UNUSED__, Evas_Object *o, Entry *en) evas_object_smart_member_add(ob, smart); evas_object_stack_above(ob, o); evas_object_clip_set(ob, clip); - evas_object_repeat_events_set(ob, 1); - evas_object_event_callback_add(ob, EVAS_CALLBACK_MOUSE_DOWN, _edje_anchor_mouse_down_cb, an); - evas_object_event_callback_add(ob, EVAS_CALLBACK_MOUSE_UP, _edje_anchor_mouse_up_cb, an); - evas_object_event_callback_add(ob, EVAS_CALLBACK_MOUSE_MOVE, _edje_anchor_mouse_move_cb, an); - evas_object_event_callback_add(ob, EVAS_CALLBACK_MOUSE_IN, _edje_anchor_mouse_in_cb, an); - evas_object_event_callback_add(ob, EVAS_CALLBACK_MOUSE_OUT, _edje_anchor_mouse_out_cb, an); + evas_object_pass_events_set(ob, 1); evas_object_show(ob); sel->obj = ob; } @@ -2167,6 +2162,7 @@ _edje_entry_anchor_geometry_get(Edje_Real_Part *rp, const char *anchor) if (!en) return NULL; EINA_LIST_FOREACH(en->anchors, l, an) { + if (an->item) continue; if (!strcmp(anchor, an->name)) return an->sel; } @@ -2186,6 +2182,7 @@ _edje_entry_anchors_list(Edje_Real_Part *rp) EINA_LIST_FOREACH(en->anchors, l, an) { const char *n = an->name; + if (an->item) continue; if (!n) n = ""; anchors = eina_list_append(anchors, strdup(n)); } -- 2.7.4