diff options
| author | Niraj Modi | 2015-04-20 16:42:43 +0000 |
|---|---|---|
| committer | Niraj Modi | 2015-04-20 16:42:43 +0000 |
| commit | 10f81fb259ead3daa0dcfd8f065b90038bcc70e4 (patch) | |
| tree | 198e910ae0d6a64e98743f0ec6ff441f3b767b15 | |
| parent | 480ec8a2cc67713c5f24208d6945fb27d72e4ab1 (diff) | |
| download | eclipse.platform.swt-10f81fb259ead3daa0dcfd8f065b90038bcc70e4.tar.gz eclipse.platform.swt-10f81fb259ead3daa0dcfd8f065b90038bcc70e4.tar.xz eclipse.platform.swt-10f81fb259ead3daa0dcfd8f065b90038bcc70e4.zip | |
Bug 458917 - [Cocoa]DateTime widget turn Black with
SWT.COLOR_TRANSPARENT background
Change-Id: I99fb2b239bc72403771f5975814f733a0f39bdba
Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
| -rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java index 497261bf8a..3bcbf01df3 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2012 IBM Corporation and others. + * Copyright (c) 2000, 2015 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -591,6 +591,11 @@ void sendVerticalSelection () { } void setBackgroundColor(NSColor nsColor) { + /* + * Adding check to avoid DateTime background turning Black with + * SWT.COLOR_TRANSPARENT, refer bug 458917 + */ + if (nsColor != null && nsColor.alphaComponent () == 0) return; ((NSDatePicker)view).setBackgroundColor(nsColor); } |
