From: Michal Skorupinski Date: Thu, 21 May 2020 16:05:40 +0000 (+0200) Subject: Soft keys segfault fixed X-Git-Tag: submit/tizen/20200525.050642^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef5398f21df5a6c12b33f44d2100f2ea90b888c3;p=profile%2Fcommon%2Fapps%2Fnative%2Fsettings.git Soft keys segfault fixed Change-Id: I096ae1bfaeb6695edfbceff7771399d6bbd8f93a Signed-off-by: Michal Skorupinski --- diff --git a/setting-softkey/src/setting-softkey-common.c b/setting-softkey/src/setting-softkey-common.c index e699fe2..4ee1985 100644 --- a/setting-softkey/src/setting-softkey-common.c +++ b/setting-softkey/src/setting-softkey-common.c @@ -45,4 +45,4 @@ bool setting_softkey_get_state() SETTING_TRACE_DEBUG("Received value of %s: %d", SETTING_SOFTKEY_VCONF_KEY, vconf_softkey); SETTING_TRACE_END; return vconf_softkey; -} \ No newline at end of file +} diff --git a/setting-softkey/src/setting-softkey-main.c b/setting-softkey/src/setting-softkey-main.c index 82019f3..a4f32c6 100644 --- a/setting-softkey/src/setting-softkey-main.c +++ b/setting-softkey/src/setting-softkey-main.c @@ -171,16 +171,14 @@ static void _mouse_up_Gendial_list_cb(void *data, ret_if(!list_item); SETTING_TRACE("clicking item[%s]", _(list_item->keyStr)); - list_item->chk_change_cb(data, ad->data_softkey_toogle->eo_check, event_info); + list_item->chk_change_cb(ad->data_softkey_toogle, ad->data_softkey_toogle->eo_check, event_info); + setting_update_gl_item_chk_status(ad->data_softkey_toogle, !ad->data_softkey_toogle->chk_status); } static void _softkey_toogle_chk_cb(void *data, Evas_Object *obj, void *event_info) { SETTING_TRACE_BEGIN; - SettingSoftKeyData *ad = (SettingSoftKeyData *)data; - Setting_GenGroupItem_Data *check_box = ad->data_softkey_toogle; + Setting_GenGroupItem_Data *check_box = (Setting_GenGroupItem_Data *)data; setting_softkey_set_state(check_box->chk_status); - setting_update_gl_item_chk_status(check_box, - !check_box->chk_status); SETTING_TRACE_END; -} \ No newline at end of file +}