diff gtk3/dw.c @ 1400:ccd383e11ff8

Allow removing of tooltips by passing NULL or "" and prevent double tooltips on some platforms.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 27 Nov 2011 20:28:15 +0000
parents 58c084177e3e
children 28210f7941c7
line wrap: on
line diff
--- a/gtk3/dw.c	Sun Nov 27 12:08:05 2011 +0000
+++ b/gtk3/dw.c	Sun Nov 27 20:28:15 2011 +0000
@@ -4345,7 +4345,10 @@
    int _locked_by_me = FALSE;
 
    DW_MUTEX_LOCK;
-   gtk_widget_set_tooltip_text(handle, bubbletext);
+   if(bubbletext && *bubbletext)
+      gtk_widget_set_tooltip_text(handle, bubbletext);
+   else
+      gtk_widget_set_has_tooltip(handle, FALSE);
    DW_MUTEX_UNLOCK;
 }