* @ingroup Longpress
*/
EAPI void elm_longpress_timeout_set(double longpress_timeout);
+
+/**
+ * Get the duration after which tooltip will be shown.
+ *
+ * @return Duration after which tooltip will be shown.
+ */
+EAPI double elm_config_tooltip_delay_get(void);
+
+/**
+ * Set the duration after which tooltip will be shown.
+ *
+ * @return EINA_TRUE if value is set.
+ */
+EAPI Eina_Bool elm_config_tooltip_delay_set(double delay);
EINA_DEPRECATED EAPI double elm_route_lon_max_get(Evas_Object *obj);
EINA_DEPRECATED EAPI double elm_route_lat_max_get(Evas_Object *obj);
+
+/**
+ * Get the duration after which tooltip will be shown.
+ *
+ * @return Duration after which tooltip will be shown.
+ * @deprecated Use elm_config_tooltip_delay_get(void);
+ */
+EINA_DEPRECATED EAPI double elm_tooltip_delay_get(void);
+
+/**
+ * Set the duration after which tooltip will be shown.
+ *
+ * @return EINA_TRUE if value is set.
+ * @deprecated Use elm_config_tooltip_delay_set(double delay);
+ */
+EINA_DEPRECATED EAPI Eina_Bool elm_tooltip_delay_set(double delay);
+
/**
* @}
*/
*/
typedef Evas_Object *(*Elm_Tooltip_Item_Content_Cb)(void *data, Evas_Object *obj, Evas_Object *tooltip, void *item);
-// XXX: move to config, rename all config things elm_config_*
-EAPI double elm_tooltip_delay_get(void);
-// XXX: move to config, rename all config things elm_config_*
-EAPI Eina_Bool elm_tooltip_delay_set(double delay);
+EINA_DEPRECATED EAPI double elm_tooltip_delay_get(void);
+EINA_DEPRECATED EAPI Eina_Bool elm_tooltip_delay_set(double delay);
EAPI void elm_object_tooltip_show(Evas_Object *obj);
EAPI void elm_object_tooltip_hide(Evas_Object *obj);
* @return The tooltip delay
* @ingroup Tooltips
*/
-EAPI double
+EINA_DEPRECATED EAPI double
elm_tooltip_delay_get(void)
{
+ return elm_config_tooltip_delay_get();
+}
+
+EAPI double elm_config_tooltip_delay_get(void)
+{
return _elm_config->tooltip_delay;
}
* @return EINA_TRUE if value is valid and setted
* @ingroup Tooltips
*/
-EAPI Eina_Bool
+EINA_DEPRECATED EAPI Eina_Bool
elm_tooltip_delay_set(double delay)
{
+ return elm_config_tooltip_delay_set(delay);
+}
+
+EAPI Eina_Bool elm_config_tooltip_delay_set(double delay)
+{
if (delay < 0.0) return EINA_FALSE;
_elm_config->tooltip_delay = delay;
return EINA_TRUE;