summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java
diff options
context:
space:
mode:
authorSteve Northover <steve>2006-01-30 20:01:46 +0000
committerSteve Northover <steve>2006-01-30 20:01:46 +0000
commitcf338074634c02b2b71ed97fe4d0947e77d380e9 (patch)
tree052e9bdc9e205df6f3037314a7dff7fde6a03db3 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java
parente2ec65253a8e34657e931525b15536b9cdc64d53 (diff)
downloadeclipse.platform.swt-cf338074634c02b2b71ed97fe4d0947e77d380e9.tar.gz
eclipse.platform.swt-cf338074634c02b2b71ed97fe4d0947e77d380e9.tar.xz
eclipse.platform.swt-cf338074634c02b2b71ed97fe4d0947e77d380e9.zip
dynamic tooltips
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java8
1 files changed, 4 insertions, 4 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 69f98b5961..f1799adc56 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
@@ -998,15 +998,15 @@ public void setText (String string) {
*/
public void setToolTipText (String string) {
checkWidget();
- toolTipText = string;
if (parent.toolTipText == null) {
Shell shell = parent._getShell ();
- setToolTipText (shell, toolTipText);
+ setToolTipText (shell, string, toolTipText);
}
+ toolTipText = string;
}
-void setToolTipText (Shell shell, String string) {
- shell.setToolTipText (handle, string);
+void setToolTipText (Shell shell, String newString, String oldString) {
+ shell.setToolTipText (handle, newString, oldString);
}
/**