forked from enlightenment/efl
elm: Allow setting NULL tooltip text to remove tooltip.
As discussed on the mailing list.
This commit is contained in:
parent
cbde2cb04b
commit
202dc8c189
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue