From f5babf9d6279a8eb80080304790f1173c61fab72 Mon Sep 17 00:00:00 2001 From: Hosang Kim Date: Tue, 1 Nov 2016 17:32:36 +0900 Subject: [PATCH] elm_label: add click event for label widget. -This patch is for maintaining compatibility @tizen Change-Id: If0334251ac1ba23dd233d25c22ab46bc905fca97 --- src/lib/elm_label.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/lib/elm_label.c b/src/lib/elm_label.c index 51633ec..fff562a 100644 --- a/src/lib/elm_label.c +++ b/src/lib/elm_label.c @@ -368,6 +368,17 @@ _on_slide_end(void *data, Evas_Object *obj EINA_UNUSED, eo_do(data, eo_event_callback_call(ELM_LABEL_EVENT_SLIDE_END, NULL)); } +// TIZEN_ONLY(20161101): add click event for label widget. +static void +_on_clicked_cb(void *data, + Evas_Object *obj EINA_UNUSED, + const char *emission EINA_UNUSED, + const char *source EINA_UNUSED) +{ + eo_do(data, eo_event_callback_call(EVAS_CLICKABLE_INTERFACE_EVENT_CLICKED, NULL)); +} +// + EOLIAN static void _elm_label_evas_object_smart_add(Eo *obj, Elm_Label_Data *priv) { @@ -389,6 +400,9 @@ _elm_label_evas_object_smart_add(Eo *obj, Elm_Label_Data *priv) edje_object_signal_callback_add(wd->resize_obj, "elm,state,slide,end", "elm", _on_slide_end, obj); + // TIZEN_ONLY(20161101): add click event for label widget. + edje_object_signal_callback_add(wd->resize_obj, "mouse,clicked,*", "*", _on_clicked_cb, obj); + // /* access */ elm_widget_can_focus_set(obj, _elm_config->access_mode); -- 2.7.4