From 5fecadb26834b981cbf5cdee6be370b58f673fb9 Mon Sep 17 00:00:00 2001 From: Tae-Hwan Kim Date: Mon, 27 May 2013 13:25:18 +0900 Subject: [PATCH] [list] Add signal emit hook. Add signal emit hook same as genlist. --- ChangeLog | 4 ++++ NEWS | 1 + src/lib/elm_list.c | 9 +++++++++ src/lib/elm_list.h | 1 + 4 files changed, 15 insertions(+) diff --git a/ChangeLog b/ChangeLog index 676c460..227e5c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1364,3 +1364,7 @@ 2013-05-23 Ryuan Choi (ryuan) * Fix elm_colorselector does not emit "changed" when clicked color palatte. + +2013-05-27 Tae-Hwan Kim (bluezery) + + * Add support elm_object_item_signal_emit() for elm_list. diff --git a/NEWS b/NEWS index 0ff4e8e..2e332fe 100644 --- a/NEWS +++ b/NEWS @@ -69,6 +69,7 @@ Additions: * The momentum animation time is changed as the amount of flick. * Add elm_entry smart callback - "text,set,done". * Add selection handlers to entry. + * Add support elm_object_item_signal_emit() for elm_list. Improvements: diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c index dbfe64b..7b46512 100644 --- a/src/lib/elm_list.c +++ b/src/lib/elm_list.c @@ -1439,6 +1439,14 @@ _item_del_pre_hook(Elm_Object_Item *it) return EINA_TRUE; } +static void +_item_signal_emit_hook(Elm_Object_Item *it, + const char *emission, + const char *source) +{ + edje_object_signal_emit(VIEW(it), emission, source); +} + static char * _access_info_cb(void *data, Evas_Object *obj __UNUSED__) { @@ -1603,6 +1611,7 @@ _item_new(Evas_Object *obj, elm_widget_item_text_set_hook_set(it, _item_text_set_hook); elm_widget_item_text_get_hook_set(it, _item_text_get_hook); elm_widget_item_del_pre_hook_set(it, _item_del_pre_hook); + elm_widget_item_signal_emit_hook_set(it, _item_signal_emit_hook); return it; } diff --git a/src/lib/elm_list.h b/src/lib/elm_list.h index 774b5bb..a8c11d7 100644 --- a/src/lib/elm_list.h +++ b/src/lib/elm_list.h @@ -64,6 +64,7 @@ * @li @ref elm_object_item_part_content_set * @li @ref elm_object_item_part_content_get * @li @ref elm_object_item_part_content_unset + * @li @ref elm_object_item_signal_emit * * This widget implements the @b @ref elm-scrollable-interface * interface, so that all (non-deprecated) functions for the base @ref -- 2.7.4