summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse
diff options
context:
space:
mode:
authorBogdan Gheorghe <gheorghe@ca.ibm.com>2011-12-05 13:56:37 -0500
committerBogdan Gheorghe <gheorghe@ca.ibm.com>2011-12-05 13:56:37 -0500
commitb61c9beda825acba89ca1905bc4965e525ec779b (patch)
tree4ea2c715c783a0f51e66fca6ceb240cc250448df /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse
parent64d29b632ce5e80bcbbf72b8860873b3b0700575 (diff)
downloadeclipse.platform.swt-b61c9beda825acba89ca1905bc4965e525ec779b.tar.gz
eclipse.platform.swt-b61c9beda825acba89ca1905bc4965e525ec779b.tar.xz
eclipse.platform.swt-b61c9beda825acba89ca1905bc4965e525ec779b.zip
354126 - Tooltips do not appear for any Eclipse icons
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
index c3685a47c6..a843557fee 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
@@ -2401,7 +2401,9 @@ void setToolTipText (int /*long*/ rootWidget, int /*long*/ tipWidget, String str
if (string == null && oldTooltip == 0) {
return;
} else if (string != null && oldTooltip != 0) {
- if (OS.strcmp (oldTooltip, buffer) == 0) return;
+ if (buffer != null) {
+ if (OS.strcmp (oldTooltip, buffer) == 0) return;
+ }
}
OS.gtk_widget_set_tooltip_text (rootWidget, null);
/*