Elm tooltip API moved to config.
authorsanjeev <sanjeev@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 27 Feb 2012 08:33:48 +0000 (08:33 +0000)
committersanjeev <sanjeev@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 27 Feb 2012 08:33:48 +0000 (08:33 +0000)
Signed-off-by: Sanjeev BA <eflelev8@gmail.com>
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@68470 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_config.h
src/lib/elm_deprecated.h
src/lib/elm_tooltip.h
src/lib/els_tooltip.c

index e3204ca..5a469b3 100644 (file)
@@ -443,3 +443,17 @@ EAPI double       elm_longpress_timeout_get(void);
  * @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);
index 01c1902..bf95c18 100644 (file)
@@ -4249,6 +4249,23 @@ EINA_DEPRECATED EAPI double       elm_route_lat_min_get(Evas_Object *obj);
 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);
+
 /**
  * @}
  */
index c39d5f6..7ba1f74 100644 (file)
@@ -26,10 +26,8 @@ typedef Evas_Object *(*Elm_Tooltip_Content_Cb)(void *data, Evas_Object *obj, Eva
  */
 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);
index 68d1db8..522200a 100644 (file)
@@ -903,9 +903,14 @@ elm_object_tooltip_style_get(const 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;
 }
 
@@ -918,9 +923,14 @@ elm_tooltip_delay_get(void)
  * @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;