diff options
author | Grant Gayed | 2002-01-21 18:44:08 +0000 |
---|---|---|
committer | Grant Gayed | 2002-01-21 18:44:08 +0000 |
commit | 334d7080489139dc1a4126aa22dc5abc3a92b653 (patch) | |
tree | 1ecac8481a0612cb46928d7af876819c35c3c341 | |
parent | fe19c6b899c9d8b993e07c5615867efe06d6b5e9 (diff) | |
download | eclipse.platform.swt-334d7080489139dc1a4126aa22dc5abc3a92b653.tar.gz eclipse.platform.swt-334d7080489139dc1a4126aa22dc5abc3a92b653.tar.xz eclipse.platform.swt-334d7080489139dc1a4126aa22dc5abc3a92b653.zip |
fix Solaris: XmNselectColor == -1
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Display.java | 18 |
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);
}
|