summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorSilenio Quarti2013-01-17 10:52:03 (EST)
committer Carolyn MacLeod2013-04-09 10:49:24 (EDT)
commit7146453c875fe9ea3465402a156cc7acc15088c8 (patch)
treedeb00d193290ae69a0afd7901d31d48a61ba9a28
parentf653da87c786c0ae5e1fcf72a64c112f66a18b4d (diff)
downloadeclipse.platform.swt-7146453c875fe9ea3465402a156cc7acc15088c8.zip
eclipse.platform.swt-7146453c875fe9ea3465402a156cc7acc15088c8.tar.gz
eclipse.platform.swt-7146453c875fe9ea3465402a156cc7acc15088c8.tar.bz2
Bug 398386 - Tooltips appearing randomly
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java2
1 files changed, 1 insertions, 1 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 0341694..460af14 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
@@ -1126,6 +1126,7 @@ public void setText (String string) {
*/
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);
@@ -1146,7 +1147,6 @@ 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) {
long /*int*/ list = OS.gtk_container_get_children (child);