summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java
diff options
context:
space:
mode:
authorBogdan Gheorghe <gheorghe@ca.ibm.com>2012-04-16 13:53:16 -0400
committerBogdan Gheorghe <gheorghe@ca.ibm.com>2012-04-16 13:53:16 -0400
commit73e2afa450446525852491565c5efa3c5c4214ce (patch)
tree8dfaa5d79f9cb98ee53e9d48ea6008131630e770 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java
parentc544b70c0083cf5c094cf4fc8b7ba7f940bb71b0 (diff)
downloadeclipse.platform.swt-73e2afa450446525852491565c5efa3c5c4214ce.tar.gz
eclipse.platform.swt-73e2afa450446525852491565c5efa3c5c4214ce.tar.xz
eclipse.platform.swt-73e2afa450446525852491565c5efa3c5c4214ce.zip
Bug 376826 Text#removeSegmentListener inconsistent with other code
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java
index 50e21914c5..725ba5a81b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java
@@ -265,7 +265,7 @@ void createHandle (int index) {
OS.gtk_window_set_type_hint (handle, OS.GDK_WINDOW_TYPE_HINT_TOOLTIP);
} else {
handle = OS.gtk_tooltips_new ();
- if (handle == 0) SWT.error (SWT.ERROR_NO_HANDLES);
+ if (handle == 0) error (SWT.ERROR_NO_HANDLES);
/*
* Bug in Solaris-GTK. Invoking gtk_tooltips_force_window()
* can cause a crash in older versions of GTK. The fix is
@@ -691,7 +691,7 @@ public void setLocation (int x, int y) {
*/
public void setLocation (Point location) {
checkWidget ();
- if (location == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
+ if (location == null) error (SWT.ERROR_NULL_ARGUMENT);
setLocation (location.x, location.y);
}