Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed2002-01-21 18:44:08 +0000
committerGrant Gayed2002-01-21 18:44:08 +0000
commit334d7080489139dc1a4126aa22dc5abc3a92b653 (patch)
tree1ecac8481a0612cb46928d7af876819c35c3c341
parentfe19c6b899c9d8b993e07c5615867efe06d6b5e9 (diff)
downloadeclipse.platform.swt-334d7080489139dc1a4126aa22dc5abc3a92b653.tar.gz
eclipse.platform.swt-334d7080489139dc1a4126aa22dc5abc3a92b653.tar.xz
eclipse.platform.swt-334d7080489139dc1a4126aa22dc5abc3a92b653.zip
fix Solaris: XmNselectColor == -1
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Display.java18
1 files changed, 11 insertions, 7 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Display.java
index 52f89fa720..231562f6b2 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Display.java
@@ -1191,14 +1191,18 @@ void initializeList () {
* the value of the selection color to use, which is between the
* background and bottom shadow colors.
*/
- if (argList [7] == OS.XmREVERSED_GROUND_COLORS) {
- listSelect = listForeground;
- } else {
- if (argList [7] == OS.XmHIGHLIGHT_COLOR) {
+ switch (argList [7]) {
+ case OS.XmDEFAULT_SELECT_COLOR:
+ listSelect = listForeground;
+ break;
+ case OS.XmREVERSED_GROUND_COLORS:
+ listSelect = listForeground;
+ break;
+ case OS.XmHIGHLIGHT_COLOR:
listSelect = argList [9];
- } else {
- listSelect = argList[7]; // the middle color to use
- }
+ break;
+ default:
+ listSelect = argList [7]; // the middle color to use
}
OS.XtDestroyWidget (shellHandle);
}

Back to the top