summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/carbon/org
diff options
context:
space:
mode:
authorAndre Weinand <aweinand>2002-10-22 21:25:06 +0000
committerAndre Weinand <aweinand>2002-10-22 21:25:06 +0000
commitebb41cd160718834aa65e439f53ed5c24f2fbfe9 (patch)
tree56da14453709dad8c9d0c3da566dca89c29fc15d /bundles/org.eclipse.swt/Eclipse SWT/carbon/org
parentb6aee3ad2bb6266942a6916fc2ee5b75d4974919 (diff)
downloadeclipse.platform.swt-ebb41cd160718834aa65e439f53ed5c24f2fbfe9.tar.gz
eclipse.platform.swt-ebb41cd160718834aa65e439f53ed5c24f2fbfe9.tar.xz
eclipse.platform.swt-ebb41cd160718834aa65e439f53ed5c24f2fbfe9.zip
cleanup
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/carbon/org')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/ToolItem.java17
1 files changed, 4 insertions, 13 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/ToolItem.java
index 42c1892cc3..78c71bf861 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/ToolItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/ToolItem.java
@@ -37,12 +37,8 @@ public class ToolItem extends Item {
String toolTipText;
Control control;
boolean set;
-
- // AW
- private boolean fPressed;
- private int fBackground;
- // AW
-
+ boolean pressed;
+
static final int DEFAULT_WIDTH = 24;
static final int DEFAULT_HEIGHT = 22;
static final int DEFAULT_SEPARATOR_WIDTH = 8;
@@ -760,13 +756,8 @@ public void setWidth (int width) {
}
}
void setDrawPressed (boolean value) {
- /* AW
- int shadowType = value ? OS.XmSHADOW_IN : OS.XmSHADOW_OUT;
- int [] argList = {OS.XmNshadowType, shadowType};
- OS.XtSetValues(handle, argList, argList.length / 2);
- */
- if (fPressed != value) {
- fPressed= value;
+ if (pressed != value) {
+ pressed= value;
redraw();
}
}