[TSAM-6553] Apply sliding event to genlist title item 33/80433/1
authorSeonah Moon <seonah1.moon@samsung.com>
Mon, 18 Jul 2016 05:43:16 +0000 (14:43 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Mon, 18 Jul 2016 05:43:27 +0000 (14:43 +0900)
Change-Id: Ifaea16de419a6f34e0e873f552b87fa172c517dd
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
packaging/wifi-efl-ug.spec
sources/wearable/src/wearable-circle/view/base.c

index 38ff7dc..5a7721c 100644 (file)
@@ -1,7 +1,7 @@
 %define _unpackaged_files_terminate_build 0
 Name:          wifi-efl-ug
 Summary:       Wi-Fi UI Gadget for TIZEN
-Version:       1.0.193
+Version:       1.0.194
 Release:       1
 Group:         App/Network
 License:       Flora-1.1
index 920ce56..806fc8d 100755 (executable)
@@ -287,6 +287,16 @@ void view_base_conformant_del_virtualkeypad_size_changed_cb(view_base_object *se
                                       "virtualkeypad,size,changed", func);
 }
 
+static void
+gl_realized_cb(void *data, Evas_Object *obj, void *event_info)
+{
+       Elm_Object_Item *it = (Elm_Object_Item *)event_info;
+       if (it == elm_genlist_first_item_get(obj))
+       {
+               elm_object_item_signal_emit(it, "elm,action,title,slide,start", "elm");
+       }
+}
+
 Evas_Object *view_base_add_genlist(view_base_object *self, Evas_Object *parent)
 {
        Evas_Object *genlist = NULL;
@@ -297,6 +307,7 @@ Evas_Object *view_base_add_genlist(view_base_object *self, Evas_Object *parent)
        WIFI_RET_VAL_IF_FAIL(genlist, NULL);
 
        elm_genlist_mode_set(genlist, ELM_LIST_COMPRESS);
+       evas_object_smart_callback_add(genlist, "realized", gl_realized_cb, NULL);
 
        return genlist;
 }