Renaming elm_web functions.
authorsanjeev <sanjeev@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 2 Mar 2012 05:10:46 +0000 (05:10 +0000)
committersanjeev <sanjeev@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 2 Mar 2012 05:10:46 +0000 (05:10 +0000)
Signed-off-by: Sanjeev BA <eflelev8@gmail.com>
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@68618 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/examples/web_example.c
src/lib/elm_deprecated.h
src/lib/elm_web.c
src/lib/elm_web.h

index 0e50129..d0cd3e8 100644 (file)
@@ -598,7 +598,7 @@ elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
 
    web = elm_web_add(win);
    elm_web_window_create_hook_set(web, _web_create_window_cb, ad);
-   elm_web_history_enable_set(web, EINA_FALSE);
+   elm_web_history_enabled_set(web, EINA_FALSE);
    evas_object_size_hint_weight_set(web, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
    evas_object_size_hint_align_set(web, EVAS_HINT_FILL, EVAS_HINT_FILL);
    elm_naviframe_item_simple_push(naviframe, web);
index 4fa6563..a3e8615 100644 (file)
@@ -4543,5 +4543,27 @@ EINA_DEPRECATED EAPI int       elm_edje_collection_cache_get(void);
 EINA_DEPRECATED EAPI void      elm_edje_collection_cache_set(int size);
 
 /**
+ * Gets whether browsing history is enabled for the given object
+ *
+ * @param obj The web object
+ *
+ * @return EINA_TRUE if history is enabled, EINA_FALSE otherwise
+ *
+ * @deprecated Use elm_web_history_enabled_get()
+ */
+EINA_DEPRECATED EAPI Eina_Bool         elm_web_history_enable_get(const Evas_Object *obj);
+
+/**
+ * Enables or disables the browsing history
+ *
+ * @param obj The web object
+ * @param enable Whether to enable or disable the browsing history
+ *
+ * @deprecated Use elm_web_history_enabled_set()
+ *
+ */
+EINA_DEPRECATED EAPI void              elm_web_history_enable_set(Evas_Object *obj, Eina_Bool enable);
+
+/**
  * @}
  */
index 8e33608..0ab49b6 100644 (file)
@@ -1572,9 +1572,15 @@ elm_web_navigate_possible(Evas_Object *obj, int steps)
 #endif
 }
 
-EAPI Eina_Bool
+EINA_DEPRECATED EAPI Eina_Bool
 elm_web_history_enable_get(const Evas_Object *obj)
 {
+   return elm_web_history_enabled_get(obj);
+}
+
+EAPI Eina_Bool
+elm_web_history_enabled_get(const Evas_Object *obj)
+{
    ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
 #ifdef HAVE_ELEMENTARY_WEB
    Widget_Data *wd = elm_widget_data_get(obj);
@@ -1585,9 +1591,15 @@ elm_web_history_enable_get(const Evas_Object *obj)
 #endif
 }
 
-EAPI void
+EINA_DEPRECATED EAPI void
 elm_web_history_enable_set(Evas_Object *obj, Eina_Bool enable)
 {
+   elm_web_history_enabled_set(obj, enable);
+}
+
+EAPI void
+elm_web_history_enabled_set(Evas_Object *obj, Eina_Bool enable)
+{
    ELM_CHECK_WIDTYPE(obj, widtype);
 #ifdef HAVE_ELEMENTARY_WEB
    Widget_Data *wd = elm_widget_data_get(obj);
index abc9d38..cb142ad 100644 (file)
@@ -713,7 +713,7 @@ EAPI Eina_Bool         elm_web_reload_full(Evas_Object *obj);
  *
  * @return EINA_TRUE on success, EINA_FALSE otherwise
  *
- * @see elm_web_history_enable_set()
+ * @see elm_web_history_enabled_set()
  * @see elm_web_back_possible()
  * @see elm_web_forward()
  * @see elm_web_navigate()
@@ -729,7 +729,7 @@ EAPI Eina_Bool         elm_web_back(Evas_Object *obj);
  *
  * @return EINA_TRUE on success, EINA_FALSE otherwise
  *
- * @see elm_web_history_enable_set()
+ * @see elm_web_history_enabled_set()
  * @see elm_web_forward_possible()
  * @see elm_web_back()
  * @see elm_web_navigate()
@@ -748,7 +748,7 @@ EAPI Eina_Bool         elm_web_forward(Evas_Object *obj);
  * @return EINA_TRUE on success, EINA_FALSE on error or if not enough
  * history exists to jump the given number of steps
  *
- * @see elm_web_history_enable_set()
+ * @see elm_web_history_enabled_set()
  * @see elm_web_navigate_possible()
  * @see elm_web_back()
  * @see elm_web_forward()
@@ -796,19 +796,15 @@ EAPI Eina_Bool         elm_web_navigate_possible(Evas_Object *obj, int steps);
  *
  * @return EINA_TRUE if history is enabled, EINA_FALSE otherwise
  */
-// XXX: use _enabled_get instead of _enable_get
-// EAPI Eina_Bool         elm_web_history_enabled_get(const Evas_Object *obj);
-EAPI Eina_Bool         elm_web_history_enable_get(const Evas_Object *obj);
+EAPI Eina_Bool         elm_web_history_enabled_get(const Evas_Object *obj);
 
 /**
  * Enables or disables the browsing history
  *
  * @param obj The web object
- * @param enable Whether to enable or disable the browsing history
+ * @param enabled Whether to enable or disable the browsing history
  */
-// XXX: use _enabled_set instead of _enable_set
-// EAPI void              elm_web_history_enabled_set(Evas_Object *obj, Eina_Bool enabled);
-EAPI void              elm_web_history_enable_set(Evas_Object *obj, Eina_Bool enable);
+EAPI void              elm_web_history_enabled_set(Evas_Object *obj, Eina_Bool enabled);
 
 /**
  * Sets the zoom level of the web object