elemenatry/icon - elm_icon_preload_set -> elm_icon_preload_disabled_set
authorhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 6 Mar 2012 09:40:54 +0000 (09:40 +0000)
committerhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 6 Mar 2012 09:40:54 +0000 (09:40 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@68799 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_deprecated.h
src/lib/elm_icon.c
src/lib/elm_icon.h

index df08875..c710dd3 100644 (file)
@@ -4940,6 +4940,16 @@ EINA_DEPRECATED EAPI void                  elm_icon_scale_set(Evas_Object *obj,
 EINA_DEPRECATED EAPI void                  elm_icon_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down);
 
 /**
+ * Enable or disable preloading of the icon
+ *
+ * @param obj The icon object
+ * @param disable If EINA_TRUE, preloading will be disabled
+ * @deprecated Use elm_icon_preload_disabled_set() instead
+ * @ingroup Icon
+ */
+EINA_DEPRECATED EAPI void                  elm_icon_preload_set(Evas_Object *obj, Eina_Bool disable);
+
+/**
  * Returns the last selected item, for a given index widget.
  *
  * @param obj The index object.
index d34fd04..9dacf8b 100644 (file)
@@ -987,7 +987,7 @@ elm_icon_object_get(Evas_Object *obj)
 }
 
 EAPI void
-elm_icon_preload_set(Evas_Object *obj, Eina_Bool disable)
+elm_icon_preload_disabled_set(Evas_Object *obj, Eina_Bool disable)
 {
    ELM_CHECK_WIDTYPE(obj, widtype);
    Widget_Data *wd = elm_widget_data_get(obj);
@@ -996,6 +996,12 @@ elm_icon_preload_set(Evas_Object *obj, Eina_Bool disable)
    _els_smart_icon_preload_set(wd->img, disable);
 }
 
+EINA_DEPRECATED EAPI void
+elm_icon_preload_set(Evas_Object *obj, Eina_Bool disable)
+{
+   elm_icon_preload_disabled_set(obj, disable);
+}
+
 EAPI void
 elm_icon_aspect_fixed_set(Evas_Object *obj, Eina_Bool fixed)
 {
index 212ebc1..837e8be 100644 (file)
@@ -455,7 +455,7 @@ EAPI Elm_Icon_Lookup_Order elm_icon_order_lookup_get(const Evas_Object *obj);
  * @param disable If EINA_TRUE, preloading will be disabled
  * @ingroup Icon
  */
-EAPI void                  elm_icon_preload_set(Evas_Object *obj, Eina_Bool disable);
+EAPI void                  elm_icon_preload_disabled_set(Evas_Object *obj, Eina_Bool disable);
 
 /**
  * Get if the icon supports animation or not.