elm_slideshow: Deprecate elm_slideshow_show() and rename it to elm_slideshow_item_show()
authorPau Espin Pedrol <pespin.shar@gmail.com>
Thu, 1 Mar 2012 11:50:56 +0000 (11:50 +0000)
committerPau Espin Pedrol <pespin.shar@gmail.com>
Thu, 1 Mar 2012 11:50:56 +0000 (11:50 +0000)
SVN revision: 68567

src/examples/slideshow_example.c
src/lib/elm_deprecated.h
src/lib/elm_slideshow.c
src/lib/elm_slideshow.h

index c3dcc0e..b97d859 100644 (file)
@@ -69,7 +69,7 @@ _first(void        *data,
        Evas_Object *obj __UNUSED__,
        void        *event_info __UNUSED__)
 {
-   elm_slideshow_show(data);
+   elm_slideshow_item_show(data);
 }
 
 static void
@@ -77,7 +77,7 @@ _last(void        *data,
       Evas_Object *obj __UNUSED__,
       void        *event_info __UNUSED__)
 {
-   elm_slideshow_show(data);
+   elm_slideshow_item_show(data);
 }
 
 static void
index 64e6954..d7487ba 100644 (file)
@@ -2681,6 +2681,20 @@ EINA_DEPRECATED EAPI void *elm_slideshow_item_data_get(const Elm_Object_Item *it
 EINA_DEPRECATED EAPI void                  elm_slideshow_item_del(Elm_Object_Item *it);
 
 /**
+ * Display a given slideshow widget's item, programmatically.
+ *
+ * @param it The item to display on @p obj's viewport
+ *
+ * The change between the current item and @p item will use the
+ * transition @p obj is set to use (@see
+ * elm_slideshow_transition_set()).
+ *
+ * @deprecated use elm_slideshow_item_show() instead
+ * @ingroup Slideshow
+ */
+EINA_DEPRECATED EAPI void                  elm_slideshow_show(Elm_Object_Item *it);
+
+/**
  * Get the toolbar object from an item.
  *
  * @param it The item.
index ddd308d..f9b5b3c 100644 (file)
@@ -365,11 +365,11 @@ _item_del_pre_hook(Elm_Object_Item *it)
           {
              l2 = eina_list_prev(l);
              if (l2)
-               elm_slideshow_show(eina_list_data_get(l2));
+               elm_slideshow_item_show(eina_list_data_get(l2));
 
           }
         else
-          elm_slideshow_show(eina_list_data_get(l2));
+          elm_slideshow_item_show(eina_list_data_get(l2));
      }
 
    wd->items = eina_list_remove_list(wd->items, item->l);
@@ -449,7 +449,7 @@ elm_slideshow_item_add(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, co
 
    wd->items = eina_list_merge(wd->items, item->l);
 
-   if (!wd->current) elm_slideshow_show((Elm_Object_Item *) item);
+   if (!wd->current) elm_slideshow_item_show((Elm_Object_Item *) item);
 
    return (Elm_Object_Item *) item;
 }
@@ -471,13 +471,13 @@ elm_slideshow_item_sorted_insert(Evas_Object *obj, const Elm_Slideshow_Item_Clas
 
    wd->items = eina_list_sorted_merge(wd->items, item->l, func);
 
-   if (!wd->current) elm_slideshow_show((Elm_Object_Item *) item);
+   if (!wd->current) elm_slideshow_item_show((Elm_Object_Item *) item);
 
    return (Elm_Object_Item *) item;
 }
 
 EAPI void
-elm_slideshow_show(Elm_Object_Item *it)
+elm_slideshow_item_show(Elm_Object_Item *it)
 {
    ELM_OBJ_ITEM_CHECK_OR_RETURN(it);
 
@@ -504,6 +504,12 @@ elm_slideshow_show(Elm_Object_Item *it)
    evas_object_smart_callback_call(WIDGET(item), SIG_CHANGED, wd->current);
 }
 
+EINA_DEPRECATED EAPI void
+elm_slideshow_show(Elm_Object_Item *it)
+{
+   elm_slideshow_item_show(it);
+}
+
 EAPI void
 elm_slideshow_next(Evas_Object *obj)
 {
index be78950..1e9472c 100644 (file)
@@ -153,7 +153,7 @@ EAPI Elm_Object_Item      *elm_slideshow_item_sorted_insert(Evas_Object *obj, co
  *
  * @ingroup Slideshow
  */
-EAPI void                  elm_slideshow_show(Elm_Object_Item *it);
+EAPI void                  elm_slideshow_item_show(Elm_Object_Item *it);
 
 /**
  * Slide to the @b next item, in a given slideshow widget