diff options
author | Carolyn MacLeod <carolyn> | 2006-10-30 20:51:42 +0000 |
---|---|---|
committer | Carolyn MacLeod <carolyn> | 2006-10-30 20:51:42 +0000 |
commit | 5f9c5e4bdbc5fc5a9d4dd517782c2fce2f76b864 (patch) | |
tree | 52d9553e609c8c49a691edc25c49438de6972f1a /bundles | |
parent | d568380273663f2b870a5b1ce8bc091ac7243403 (diff) | |
download | eclipse.platform.swt-5f9c5e4bdbc5fc5a9d4dd517782c2fce2f76b864.tar.gz eclipse.platform.swt-5f9c5e4bdbc5fc5a9d4dd517782c2fce2f76b864.tar.xz eclipse.platform.swt-5f9c5e4bdbc5fc5a9d4dd517782c2fce2f76b864.zip |
fix up fonts and colors
Diffstat (limited to 'bundles')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java index 6c23c65bb4..28bf5d9758 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java @@ -513,6 +513,25 @@ void sendSelectionEvent () { } } +public void setBackground(Color color) { + checkWidget(); + super.setBackground(color); + if (text != null) text.setBackground(color); +} + +public void setFont(Font font) { + checkWidget(); + super.setFont(font); + if (text != null) text.setFont(font); + redraw(); +} + +public void setForeground(Color color) { + checkWidget(); + super.setForeground(color); + if (text != null) text.setForeground(color); +} + /*public*/ void setFormat(String string) { checkWidget(); fieldCount = (style & SWT.DATE) != 0 ? 3 : 4; |