From: Sungho Kwak Date: Mon, 29 Apr 2013 14:18:53 +0000 (+0900) Subject: [elm_win] Remove handler when windows are removed. X-Git-Tag: submit/tizen_2.2/20130714.145026~315 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=155ca40c30648feb691d4435aa0cd0e9567124d3;p=framework%2Fuifw%2Felementary.git [elm_win] Remove handler when windows are removed. This commit was written by Woojyun Jung (wh0705.jung@samsung.com) Change-Id: Iabfd7d70b68a659e72d0af90b4a77eb51b0816e2 --- 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)