summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdan Gheorghe <gheorghe@ca.ibm.com>2012-10-11 17:12:46 -0400
committerBogdan Gheorghe <gheorghe@ca.ibm.com>2012-10-11 17:12:46 -0400
commitb16cc7ac5911d04bae872f4c5c032f451e75a127 (patch)
treeafbe69d44464e8fcc4f8488c4f9e26c6c2dc1a25
parentd2a1d09a2450fdd75ca84606740151070c252a5a (diff)
downloadeclipse.platform.swt-b16cc7ac5911d04bae872f4c5c032f451e75a127.tar.gz
eclipse.platform.swt-b16cc7ac5911d04bae872f4c5c032f451e75a127.tar.xz
eclipse.platform.swt-b16cc7ac5911d04bae872f4c5c032f451e75a127.zip
Bug 391722 - Avoid setting the same tooltip text in ToolItem
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java1
1 files changed, 1 insertions, 0 deletions
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)) {