From: Jihoon Kim Date: Thu, 28 Jun 2018 01:09:28 +0000 (+0900) Subject: demo: Add code to unregister vconf notification X-Git-Tag: accepted/tizen/unified/20180702.062923~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b82d364e62c663f2dc3e14c4798b23323049cd0;p=platform%2Fcore%2Fuifw%2Fisf.git demo: Add code to unregister vconf notification Change-Id: I546bc1569b3077088409acae5c76e3285e243aed Signed-off-by: Jihoon Kim --- diff --git a/ism/demos/isf_demo_efl.cpp b/ism/demos/isf_demo_efl.cpp index da18a12..512ef68 100644 --- a/ism/demos/isf_demo_efl.cpp +++ b/ism/demos/isf_demo_efl.cpp @@ -396,7 +396,6 @@ static int app_create (void *data) vconf_notify_key_changed (VCONFKEY_ISF_INPUT_PANEL_STATE, input_panel_state_changed_cb, NULL); - ad->key_down_handler = ecore_event_handler_add (ECORE_EVENT_KEY_DOWN, _keydown_event, ad); ad->key_up_handler = ecore_event_handler_add (ECORE_EVENT_KEY_UP, _keyup_event, ad); @@ -413,6 +412,8 @@ static int app_exit (void *data) struct appdata *ad = (struct appdata *)data; if (ad == NULL) return -1; + vconf_ignore_key_changed (VCONFKEY_ISF_INPUT_PANEL_STATE, input_panel_state_changed_cb); + if (ad->key_down_handler) { ecore_event_handler_del (ad->key_down_handler); ad->key_down_handler = NULL;