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);
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);
+
+/**
* @}
*/
#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);
#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);
*
* @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()
*
* @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()
* @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()
*
* @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