elm: Allow setting NULL tooltip text to remove tooltip.

As discussed on the mailing list.
This commit is contained in:
Andy Williams 2016-11-12 21:23:40 +00:00
parent cbde2cb04b
commit 202dc8c189
1 changed files with 6 additions and 1 deletions

View File

@ -950,7 +950,12 @@ EAPI void
elm_object_tooltip_text_set(Evas_Object *obj, const char *text)
{
EINA_SAFETY_ON_NULL_RETURN(obj);
EINA_SAFETY_ON_NULL_RETURN(text);
if (!text)
{
elm_object_tooltip_unset(obj);
return;
}
text = eina_stringshare_add(text);
elm_object_tooltip_content_cb_set