index: Support "realized" and "unrealized" for Tizen SDK Tools. 81/88781/3
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Sun, 20 Sep 2015 07:48:43 +0000 (16:48 +0900)
committerHermet Park <chuneon.park@samsung.com>
Fri, 23 Sep 2016 07:36:31 +0000 (00:36 -0700)
"realized" and "unrealized" smart callbacks are supported to track items
on Tizen SDK Tools.

Change-Id: Ifa667925f4c5ab013c883a38be635d160b07215c
Signed-off-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
src/lib/elm_index.c

index bfcfc06..f35aab0 100644 (file)
@@ -82,6 +82,11 @@ _index_box_clear(Evas_Object *obj,
      {
         ELM_INDEX_ITEM_DATA_GET(eo_item, it);
         if (it->level != level) continue;
+#ifdef SDK_TOOLS
+        //TIZEN ONLY(20150920): "realized" and "unrealized" smart callbacks are
+        //supported to track items on Tizen SDK tools.
+        evas_object_smart_callback_call(obj, "unrealized", EO_OBJ(it));
+#endif
         evas_object_box_remove(sd->bx[level], VIEW(it));
         evas_object_hide(VIEW(it));
      }
@@ -425,6 +430,11 @@ _index_box_auto_fill(Evas_Object *obj,
           eo_do(eo_item, elm_wdg_item_access_register());
 
         last_it = it;
+#ifdef SDK_TOOLS
+        //TIZEN ONLY(20150920): "realized" and "unrealized" smart callbacks are
+        //supported to track items on Tizen SDK tools.
+        evas_object_smart_callback_call(obj, "realized", EO_OBJ(it));
+#endif
      }
 
    evas_object_smart_calculate(sd->bx[level]);