Bug 398386 - Tooltips appearing randomly
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java
index 81df91f..157e33e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java
@@ -1162,6 +1162,7 @@
  */
 public void setToolTipText (String string) {
 	checkWidget();
+	if (toolTipText == string || (toolTipText != null && toolTipText.equals(string))) return;
 	if (parent.toolTipText == null) {
 		Shell shell = parent._getShell ();
 		setToolTipText (shell, string);
@@ -1182,7 +1183,6 @@
 }
 
 void setToolTipText (Shell shell, String newString) {
-	if (toolTipText == newString || (toolTipText != null && toolTipText.equals(newString))) return;
 	int /*long*/ child = OS.gtk_bin_get_child (handle);
 	if ((style & SWT.DROP_DOWN) != 0) {
 		if (OS.GTK_VERSION >= OS.VERSION (2, 6, 0)) {