From b61c9beda825acba89ca1905bc4965e525ec779b Mon Sep 17 00:00:00 2001 From: Bogdan Gheorghe Date: Mon, 5 Dec 2011 13:56:37 -0500 Subject: 354126 - Tooltips do not appear for any Eclipse icons --- .../Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse') 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); /* -- cgit