From: tasn Date: Mon, 29 Aug 2011 11:55:25 +0000 (+0000) Subject: Elm tooltip: Remove the checks if object passed is an elm widget. X-Git-Tag: REL_F_I9500_20120323_1~17^2~1863 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8647a5f5098958208bfc80040cdfa4decd9eba16;p=framework%2Fuifw%2Felementary.git Elm tooltip: Remove the checks if object passed is an elm widget. This kinda reverts 62919, still kept the useful new macro/func. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@62943 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/els_tooltip.c b/src/lib/els_tooltip.c index e553218..387ef54 100644 --- a/src/lib/els_tooltip.c +++ b/src/lib/els_tooltip.c @@ -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; }