Elm tooltip: Remove the checks if object passed is an elm widget.

This kinda reverts 62919, still kept the useful new macro/func.

SVN revision: 62943
This commit is contained in:
Tom Hacohen 2011-08-29 11:55:25 +00:00
parent 954d3e31cf
commit bc6ea747d1
1 changed files with 0 additions and 9 deletions

View File

@ -717,7 +717,6 @@ elm_object_sub_tooltip_content_cb_set(Evas_Object *eventarea, Evas_Object *owner
EAPI void
elm_object_tooltip_show(Evas_Object *obj)
{
ELM_CHECK_WID_IS(obj);
ELM_TOOLTIP_GET_OR_RETURN(tt, obj);
tt->visible_lock = EINA_TRUE;
_elm_tooltip_show(tt);
@ -735,7 +734,6 @@ elm_object_tooltip_show(Evas_Object *obj)
EAPI void
elm_object_tooltip_hide(Evas_Object *obj)
{
ELM_CHECK_WID_IS(obj);
ELM_TOOLTIP_GET_OR_RETURN(tt, obj);
tt->visible_lock = EINA_FALSE;
_elm_tooltip_hide_anim_start(tt);
@ -756,7 +754,6 @@ elm_object_tooltip_hide(Evas_Object *obj)
EAPI void
elm_object_tooltip_text_set(Evas_Object *obj, const char *text)
{
ELM_CHECK_WID_IS(obj);
EINA_SAFETY_ON_NULL_RETURN(obj);
EINA_SAFETY_ON_NULL_RETURN(text);
@ -788,7 +785,6 @@ elm_object_tooltip_text_set(Evas_Object *obj, const char *text)
EAPI void
elm_object_tooltip_content_cb_set(Evas_Object *obj, Elm_Tooltip_Content_Cb func, const void *data, Evas_Smart_Cb del_cb)
{
ELM_CHECK_WID_IS(obj);
elm_object_sub_tooltip_content_cb_set(obj, obj, func, data, del_cb);
}
@ -808,7 +804,6 @@ elm_object_tooltip_content_cb_set(Evas_Object *obj, Elm_Tooltip_Content_Cb func,
EAPI void
elm_object_tooltip_unset(Evas_Object *obj)
{
ELM_CHECK_WID_IS(obj);
ELM_TOOLTIP_GET_OR_RETURN(tt, obj);
_elm_tooltip_unset(tt);
}
@ -826,7 +821,6 @@ elm_object_tooltip_unset(Evas_Object *obj)
EAPI void
elm_object_tooltip_style_set(Evas_Object *obj, const char *style)
{
ELM_CHECK_WID_IS(obj);
ELM_TOOLTIP_GET_OR_RETURN(tt, obj);
if (!eina_stringshare_replace(&tt->style, style)) return;
elm_tooltip_theme(tt);
@ -842,7 +836,6 @@ elm_object_tooltip_style_set(Evas_Object *obj, const char *style)
EAPI const char *
elm_object_tooltip_style_get(const Evas_Object *obj)
{
ELM_CHECK_WID_IS(obj) NULL;
ELM_TOOLTIP_GET_OR_RETURN(tt, obj, NULL);
return tt->style ? tt->style : "default";
}
@ -890,7 +883,6 @@ elm_tooltip_delay_set(double delay)
EAPI Eina_Bool
elm_tooltip_size_restrict_disable(Evas_Object *obj, Eina_Bool disable)
{
ELM_CHECK_WID_IS(obj) EINA_FALSE;
ELM_TOOLTIP_GET_OR_RETURN(tt, obj, EINA_FALSE);
return tt->free_size = disable;
}
@ -907,7 +899,6 @@ elm_tooltip_size_restrict_disable(Evas_Object *obj, Eina_Bool disable)
EAPI Eina_Bool
elm_tooltip_size_restrict_disabled_get(const Evas_Object *obj)
{
ELM_CHECK_WID_IS(obj) EINA_FALSE;
ELM_TOOLTIP_GET_OR_RETURN(tt, obj, EINA_FALSE);
return tt->free_size;
}