forked from enlightenment/efl
Elm tooltip API moved to config.
Signed-off-by: Sanjeev BA <eflelev8@gmail.com> SVN revision: 68470
This commit is contained in:
parent
dcd2cf453c
commit
84fe1571f2
|
@ -443,3 +443,17 @@ EAPI double elm_longpress_timeout_get(void);
|
||||||
* @ingroup Longpress
|
* @ingroup Longpress
|
||||||
*/
|
*/
|
||||||
EAPI void elm_longpress_timeout_set(double longpress_timeout);
|
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);
|
||||||
|
|
|
@ -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_lon_max_get(Evas_Object *obj);
|
||||||
EINA_DEPRECATED EAPI double elm_route_lat_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);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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);
|
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_*
|
EINA_DEPRECATED EAPI double elm_tooltip_delay_get(void);
|
||||||
EAPI double elm_tooltip_delay_get(void);
|
EINA_DEPRECATED EAPI Eina_Bool elm_tooltip_delay_set(double delay);
|
||||||
// XXX: move to config, rename all config things elm_config_*
|
|
||||||
EAPI Eina_Bool elm_tooltip_delay_set(double delay);
|
|
||||||
|
|
||||||
EAPI void elm_object_tooltip_show(Evas_Object *obj);
|
EAPI void elm_object_tooltip_show(Evas_Object *obj);
|
||||||
EAPI void elm_object_tooltip_hide(Evas_Object *obj);
|
EAPI void elm_object_tooltip_hide(Evas_Object *obj);
|
||||||
|
|
|
@ -903,8 +903,13 @@ elm_object_tooltip_style_get(const Evas_Object *obj)
|
||||||
* @return The tooltip delay
|
* @return The tooltip delay
|
||||||
* @ingroup Tooltips
|
* @ingroup Tooltips
|
||||||
*/
|
*/
|
||||||
EAPI double
|
EINA_DEPRECATED EAPI double
|
||||||
elm_tooltip_delay_get(void)
|
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 _elm_config->tooltip_delay;
|
||||||
}
|
}
|
||||||
|
@ -918,8 +923,13 @@ elm_tooltip_delay_get(void)
|
||||||
* @return EINA_TRUE if value is valid and setted
|
* @return EINA_TRUE if value is valid and setted
|
||||||
* @ingroup Tooltips
|
* @ingroup Tooltips
|
||||||
*/
|
*/
|
||||||
EAPI Eina_Bool
|
EINA_DEPRECATED EAPI Eina_Bool
|
||||||
elm_tooltip_delay_set(double delay)
|
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;
|
if (delay < 0.0) return EINA_FALSE;
|
||||||
_elm_config->tooltip_delay = delay;
|
_elm_config->tooltip_delay = delay;
|
||||||
|
|
Loading…
Reference in New Issue