elm_index: add elm_index_priority_get() api. 26/77526/3
authorHermet Park <hermet@hermet.pe.kr>
Thu, 30 Jun 2016 06:41:23 +0000 (15:41 +0900)
committerHermet Park <chuneon.park@samsung.com>
Thu, 30 Jun 2016 06:53:09 +0000 (23:53 -0700)
elm_index_priority_get() api has been changed to elm_index_standard_priority_get().

keep the previous api with deprecated for compatibility.

Change-Id: I20e3fd996a65f8a55e8e68206c95eafba28c369d

src/lib/elm_deprecated.h
src/lib/elm_index.c

index 69f275477d9b00c04e5adb2b305b1b9f964c2e3b..2374264612abbb3a42281914864b88f846a03c07 100644 (file)
@@ -1686,3 +1686,18 @@ EINA_DEPRECATED EAPI Eina_Bool elm_ctxpopup_direction_available_get(Evas_Object
  * @ingroup Elm_Index
  */
 EINA_DEPRECATED EAPI void elm_index_priority_set(Evas_Object *obj, int priority);
+
+/**
+ * @brief Control standard_priority group of index. Priority group will be
+ * shown as many items as it can, and other group will be shown one character
+ * only.
+ *
+ * @return @c priority target priority value in index
+ *
+ * @see Use elm_index_standard_priority_get()
+ *
+ * @since 1.16
+ *
+ * @ingroup Elm_Index
+ */
+EINA_DEPRECATED EAPI int elm_index_priority_get(const Evas_Object *obj);
index e837b4de3d0c9eed8d43e71909fd17a0ee76c4cf..18d85dcdf0e6efa67830d3865bd9278b4d750d46 100644 (file)
@@ -1671,6 +1671,14 @@ _elm_index_item_priority_set(Eo *eo_it EINA_UNUSED, Elm_Index_Item_Data *it, int
    it->priority = priority;
 }
 
+EINA_DEPRECATED EAPI int
+elm_index_priority_get(const Eo *obj)
+{
+   int ret = 0;
+   eo_do(obj, ret = elm_obj_index_standard_priority_get());
+   return ret;
+}
+
 EINA_DEPRECATED EAPI void
 elm_index_priority_set(Eo *obj, int priority)
 {