ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=202dc8c189612fd4fca34aa85a5fb17a2c72d5f6

commit 202dc8c189612fd4fca34aa85a5fb17a2c72d5f6
Author: Andy Williams <[email protected]>
Date:   Sat Nov 12 21:23:40 2016 +0000

    elm: Allow setting NULL tooltip text to remove tooltip.
    
    As discussed on the mailing list.
---
 src/lib/elementary/els_tooltip.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/els_tooltip.c b/src/lib/elementary/els_tooltip.c
index f5c5425..e601176 100644
--- a/src/lib/elementary/els_tooltip.c
+++ b/src/lib/elementary/els_tooltip.c
@@ -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

-- 


Reply via email to