From b16cc7ac5911d04bae872f4c5c032f451e75a127 Mon Sep 17 00:00:00 2001 From: Bogdan Gheorghe Date: Thu, 11 Oct 2012 17:12:46 -0400 Subject: Bug 391722 - Avoid setting the same tooltip text in ToolItem --- .../Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java | 1 + 1 file changed, 1 insertion(+) 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 b1cfc6096d..9cb039a4ee 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 @@ -1192,6 +1192,7 @@ public void setToolTipText (String string) { } void setToolTipText (Shell shell, String newString) { + if (toolTipText == newString || (toolTipText != null && toolTipText.equals(newString))) return; long /*int*/ child = OS.gtk_bin_get_child (handle); if ((style & SWT.DROP_DOWN) != 0) { if (OS.GTK_VERSION >= OS.VERSION (2, 6, 0)) { -- cgit