From 155ca40c30648feb691d4435aa0cd0e9567124d3 Mon Sep 17 00:00:00 2001 From: Sungho Kwak Date: Mon, 29 Apr 2013 23:18:53 +0900 Subject: [PATCH] [elm_win] Remove handler when windows are removed. This commit was written by Woojyun Jung (wh0705.jung@samsung.com) Change-Id: Iabfd7d70b68a659e72d0af90b4a77eb51b0816e2 --- src/lib/elm_win.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c index 5417812..a72d916 100755 --- a/src/lib/elm_win.c +++ b/src/lib/elm_win.c @@ -1530,6 +1530,10 @@ _elm_win_smart_del(Evas_Object *obj) ELM_WIN_DATA_GET(obj, sd); + // TIZEN ONLY (20130422) : For automating default focused UI. + if (sd->obj) sd->obj = NULL; + // + /* NB: child deletion handled by parent's smart del */ if ((trap) && (trap->del)) @@ -1572,6 +1576,12 @@ _elm_win_smart_del(Evas_Object *obj) ecore_event_handler_del(sd->x.client_message_handler); if (sd->x.property_handler) ecore_event_handler_del(sd->x.property_handler); + // TIZEN ONLY (20130422) : For automating default focused UI. + if (sd->x.mouse_down_handler) + ecore_event_handler_del(sd->x.mouse_down_handler); + if (sd->x.key_down_handler) + ecore_event_handler_del(sd->x.key_down_handler); + // #endif if (sd->img_obj) -- 2.7.4