From 5a36b545980270655aa8702fb304378a7655ce7a Mon Sep 17 00:00:00 2001 From: Myungjae Lee Date: Wed, 19 Jan 2011 21:43:52 +0900 Subject: [PATCH] [entry] changed handler position to higher layer --- src/lib/edje_entry.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/lib/edje_entry.c b/src/lib/edje_entry.c index 9713b00..ce59d57 100644 --- a/src/lib/edje_entry.c +++ b/src/lib/edje_entry.c @@ -2571,8 +2571,7 @@ _edje_entry_real_part_init(Edje_Real_Part *rp) { ob = edje_object_add(en->rp->edje->evas); edje_object_file_set(ob, en->rp->edje->path, en->rp->part->source3); - evas_object_smart_member_add(ob, smart); - evas_object_stack_above(ob, rp->object); + evas_object_layer_set(ob, EVAS_LAYER_MAX - 2); en->block_handler_top = ob; en->rp->edje->subobjs = eina_list_append(en->rp->edje->subobjs, en->block_handler_top); evas_object_event_callback_add(ob, EVAS_CALLBACK_MOUSE_DOWN, _edje_entry_top_handler_mouse_down_cb, en->rp); @@ -2584,8 +2583,7 @@ _edje_entry_real_part_init(Edje_Real_Part *rp) { ob = edje_object_add(en->rp->edje->evas); edje_object_file_set(ob, en->rp->edje->path, en->rp->part->source2); - evas_object_smart_member_add(ob, smart); - evas_object_stack_above(ob, rp->object); + evas_object_layer_set(ob, EVAS_LAYER_MAX - 2); en->block_handler_btm = ob; en->rp->edje->subobjs = eina_list_append(en->rp->edje->subobjs, en->block_handler_btm); evas_object_event_callback_add(ob, EVAS_CALLBACK_MOUSE_DOWN, _edje_entry_bottom_handler_mouse_down_cb, en->rp); @@ -2670,6 +2668,11 @@ _edje_entry_real_part_shutdown(Edje_Real_Part *rp) evas_object_del(en->cursor_bg); evas_object_del(en->cursor_fg); + if (en->block_handler_top) + evas_object_del(en->block_handler_top); + if (en->block_handler_btm) + evas_object_del(en->block_handler_btm); + #ifdef HAVE_ECORE_IMF if (rp->part->entry_mode >= EDJE_ENTRY_EDIT_MODE_EDITABLE) { -- 2.7.4