Edje: remove item provider from eo api
authorDaniel Hirt <hirt.danny@gmail.com>
Tue, 7 Nov 2017 15:33:56 +0000 (17:33 +0200)
committerWonki Kim <wonki_.kim@samsung.com>
Tue, 3 Apr 2018 04:28:27 +0000 (13:28 +0900)
src/lib/edje/Edje_Legacy.h
src/lib/edje/edje_util.c
src/lib/edje/efl_canvas_layout.eo

index cad23ce..eaa7d09 100644 (file)
@@ -3135,6 +3135,22 @@ EAPI const Edje_Perspective *edje_object_perspective_get(const Evas_Object *obj)
  */
 
 
+/**
+ * @brief Sets the function that provides item objects for named items in an
+ * edje entry text
+ *
+ * Item objects may be deleted any time by Edje, and will be deleted when the
+ * Edje object is deleted (or file is set to a new file).
+ *
+ * @param[in] obj The object.
+ * @param[in] func The function to call (or @c null to disable) to get item
+ * objects
+ * @param[in] data The data pointer to pass to the func callback
+ *
+ * @ingroup Edje_Object
+ */
+EAPI void edje_object_item_provider_set(Edje_Object *obj, Edje_Item_Provider_Cb func, void *data);
+
 typedef Efl_Canvas_Layout_Part_Type Edje_Part_Type;
 #define EDJE_PART_TYPE_NONE        EFL_CANVAS_LAYOUT_PART_TYPE_NONE
 #define EDJE_PART_TYPE_RECTANGLE   EFL_CANVAS_LAYOUT_PART_TYPE_RECTANGLE
index 06afffc..97fe1a5 100644 (file)
@@ -2047,9 +2047,11 @@ edje_object_part_object_get(const Eo *obj, const char *part)
    return rp->object;
 }
 
-EOLIAN void
-_efl_canvas_layout_item_provider_set(Eo *obj EINA_UNUSED, Edje *ed, Edje_Item_Provider_Cb func, void *data)
+EAPI void
+edje_object_item_provider_set(Edje_Object *obj, Edje_Item_Provider_Cb func, void *data)
 {
+   Edje *ed = _edje_fetch(obj);
+   if (!ed) return;
    ed->item_provider.func = func;
    ed->item_provider.data = data;
 }
index b210c91..a5e2245 100644 (file)
@@ -40,22 +40,6 @@ class Efl.Canvas.Layout (Efl.Canvas.Group, Efl.File, Efl.Container, Efl.Part,
          legacy: null;
          return: iterator<string> @owned; [[Part name iterator]]
       }
-
-      /* TEXT PART APIS BEGIN ---------------------------------------------- */
-      @property item_provider {
-         set {
-            [[Sets the function that provides item objects for named items in an edje entry text
-
-              Item objects may be deleted any time by Edje, and will be deleted when the
-              Edje object is deleted (or file is set to a new file).]]
-         }
-         values {
-            func: Edje.Item_Provider_Cb; [[The function to call (or $null to disable) to get item objects]]
-            data: void_ptr; [[The data pointer to pass to the func callback]]
-         }
-      }
-      /* TEXT PART APIS END ------------------------------------------------ */
-
       @property seat {
          get {
             [[Returns the seat device given its Edje's name.