[list] Add signal emit hook.
authorTae-Hwan Kim <the81.kim@samsung.com>
Mon, 27 May 2013 04:25:18 +0000 (13:25 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Mon, 27 May 2013 04:25:18 +0000 (13:25 +0900)
Add signal emit hook same as genlist.

ChangeLog
NEWS
src/lib/elm_list.c
src/lib/elm_list.h

index 676c460..227e5c7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 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 (file)
--- 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:
 
index dbfe64b..7b46512 100644 (file)
@@ -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;
 }
index 774b5bb..a8c11d7 100644 (file)
@@ -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