summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeronika Irvine <veronika>2006-02-07 18:17:57 +0000
committerVeronika Irvine <veronika>2006-02-07 18:17:57 +0000
commitfef8729f15bfe633ca792606aca933631d0a9ad1 (patch)
tree33dc83d47d5f8986a92f4d321aebb6dfd84a2905
parent02cf49ed240a5a07551e319bb70a37911d714257 (diff)
downloadeclipse.platform.swt-fef8729f15bfe633ca792606aca933631d0a9ad1.tar.gz
eclipse.platform.swt-fef8729f15bfe633ca792606aca933631d0a9ad1.tar.xz
eclipse.platform.swt-fef8729f15bfe633ca792606aca933631d0a9ad1.zip
On GTK, close button won't draw because of tooltip
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
index ecc511fe7b..784777770f 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
@@ -1867,7 +1867,10 @@ void onMouse(Event event) {
int x = event.x, y = event.y;
switch (event.type) {
case SWT.MouseExit: {
- setToolTipText(null);
+ // TEMPORARY CODE
+ // On GTK, clearing tooltip on mouse exit prevents close button from drawing
+ String platform = SWT.getPlatform();
+ if (!"gtk".equals(platform)) setToolTipText(null); //$NON-NLS-1$
if (minImageState != NORMAL) {
minImageState = NORMAL;
redraw(minRect.x, minRect.y, minRect.width, minRect.height, false);