elementary/genlist - deprecated elm_genlist_item_genlist_get()
authorhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 30 Jan 2012 04:37:41 +0000 (04:37 +0000)
committerhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 30 Jan 2012 04:37:41 +0000 (04:37 +0000)
please use elm_object_item_widget_get() instead.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@67596 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/test_cursor.c
src/bin/test_genlist.c
src/bin/test_tooltip.c
src/examples/genlist_example_05.c
src/lib/elm_deprecated.h
src/lib/elm_genlist.h

index 64d0152..9c70e49 100644 (file)
@@ -46,7 +46,7 @@ static void
 glt_exp(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
 {
    Elm_Object_Item *glit = event_info;
-   Evas_Object *gl = elm_genlist_item_genlist_get(glit);
+   Evas_Object *gl = elm_object_item_widget_get(glit);
    int val = (int)(long) elm_object_item_data_get(glit);
    Elm_Object_Item *glit1, *glit2, *glit3;
 
index 79a0755..fd4a600 100644 (file)
@@ -1050,7 +1050,7 @@ static void
 gl4_exp(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
 {
    Elm_Object_Item *glit = event_info;
-   Evas_Object *gl = elm_genlist_item_genlist_get(glit);
+   Evas_Object *gl = elm_object_item_widget_get(glit);
    int val = (int)(long) elm_object_item_data_get(glit);
    val *= 10;
    elm_genlist_item_append(gl, &itc4,
@@ -1535,7 +1535,7 @@ static void
 gl9_exp(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
 {
    Elm_Object_Item *glit = event_info;
-   Evas_Object *gl = elm_genlist_item_genlist_get(glit);
+   Evas_Object *gl = elm_object_item_widget_get(glit);
    int val = (int)(long) elm_object_item_data_get(glit);
    val *= 10;
    elm_genlist_item_append(gl, &itc1,
index 7a279bf..eaabae0 100644 (file)
@@ -52,7 +52,7 @@ gltt_exp(void *data       __UNUSED__,
          void            *event_info)
 {
    Elm_Object_Item *glit = event_info;
-   Evas_Object *gl = elm_genlist_item_genlist_get(glit);
+   Evas_Object *gl = elm_object_item_widget_get(glit);
    int val = (int)(long) elm_object_item_data_get(glit);
    Elm_Object_Item *glit1, *glit2, *glit3;
 
index 04bc68a..30f1a16 100644 (file)
@@ -259,7 +259,7 @@ _expanded_cb(void *data __UNUSED__, Evas_Object *o __UNUSED__, void *event_info)
    Eina_List *l;
    Elm_Object_Item *glit = event_info;
    Node_Data *it_data, *d = elm_object_item_data_get(glit);
-   Evas_Object *list = elm_genlist_item_genlist_get(glit);
+   Evas_Object *list = elm_object_item_widget_get(glit);
 
    Elm_Genlist_Item_Class *ic;
 
index 4e4e7ff..b54a8a1 100644 (file)
@@ -1821,6 +1821,21 @@ EINA_DEPRECATED EAPI Eina_Bool                     elm_genlist_item_disabled_get
  */
 EINA_DEPRECATED EAPI void                          elm_genlist_item_del(Elm_Object_Item *it);
 
+/**
+ * Get the genlist object's handle which contains a given genlist
+ * item
+ *
+ * @param it The item to fetch the container from
+ * @return The genlist (parent) object
+ *
+ * This returns the genlist object itself that an item belongs to.
+ * @deprecated Use elm_object_item_widget_get() instead
+ *
+ * @ingroup Genlist
+ */
+EINA_DEPRECATED EAPI Evas_Object                  *elm_genlist_item_genlist_get(const Elm_Object_Item *it);
+
+
 #define ELM_IMAGE_ROTATE_90_CW 1
 #define ELM_IMAGE_ROTATE_180_CW 2
 #define ELM_IMAGE_ROTATE_90_CCW 3
index df9332f..23b173d 100644 (file)
@@ -1084,19 +1084,6 @@ EAPI Elm_Object_Item             *elm_genlist_item_next_get(const Elm_Object_Ite
 EAPI Elm_Object_Item             *elm_genlist_item_prev_get(const Elm_Object_Item *it);
 
 /**
- * Get the genlist object's handle which contains a given genlist
- * item
- *
- * @param it The item to fetch the container from
- * @return The genlist (parent) object
- *
- * This returns the genlist object itself that an item belongs to.
- *
- * @ingroup Genlist
- */
-EAPI Evas_Object                  *elm_genlist_item_genlist_get(const Elm_Object_Item *it);
-
-/**
  * Get the parent item of the given item
  *
  * @param it The item