ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=46882cc2da03cc9e4c9ab7e3079bf7200e9ca58a

commit 46882cc2da03cc9e4c9ab7e3079bf7200e9ca58a
Author: Andy Williams <[email protected]>
Date:   Sun Nov 27 23:14:26 2016 +0000

    tooltip: Don't warn when clearing tooltip if none set
    
    This behaviour was already agreed, I just didn't notice the warnings created
---
 src/lib/elementary/els_tooltip.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/els_tooltip.c b/src/lib/elementary/els_tooltip.c
index e601176..4357336 100644
--- a/src/lib/elementary/els_tooltip.c
+++ b/src/lib/elementary/els_tooltip.c
@@ -949,11 +949,14 @@ elm_object_tooltip_hide(Evas_Object *obj)
 EAPI void
 elm_object_tooltip_text_set(Evas_Object *obj, const char *text)
 {
+   Elm_Tooltip *tt;
    EINA_SAFETY_ON_NULL_RETURN(obj);
 
    if (!text)
      {
-        elm_object_tooltip_unset(obj);
+        tt = evas_object_data_get((obj), _tooltip_key);
+        if (tt)
+          elm_object_tooltip_unset(obj);
        return;
      }
 

-- 


Reply via email to