summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java
diff options
context:
space:
mode:
authorSteve Northover <steve>2006-06-29 17:57:25 +0000
committerSteve Northover <steve>2006-06-29 17:57:25 +0000
commit372ad0fa1cef9d4ccdc2a41048cec7945f3753c1 (patch)
tree89640a5ae596ba9c7f33a8126bc4e435cbb0b279 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java
parentb2f839080f9751f164e3c854e27a6a67eb7c0cda (diff)
downloadeclipse.platform.swt-372ad0fa1cef9d4ccdc2a41048cec7945f3753c1.tar.gz
eclipse.platform.swt-372ad0fa1cef9d4ccdc2a41048cec7945f3753c1.tar.xz
eclipse.platform.swt-372ad0fa1cef9d4ccdc2a41048cec7945f3753c1.zip
133183 - Button widget with SWT.CHECK style is not showing foreground color when it is in selected/checked state
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java
index 625efef1eb..a97f721953 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java
@@ -441,9 +441,9 @@ void setFontDescription (int /*long*/ font) {
void setForegroundColor (GdkColor color) {
super.setForegroundColor (color);
- OS.gtk_widget_modify_fg (fixedHandle, OS.GTK_STATE_NORMAL, color);
- if (labelHandle != 0) OS.gtk_widget_modify_fg (labelHandle, OS.GTK_STATE_NORMAL, color);
- if (imageHandle != 0) OS.gtk_widget_modify_fg (imageHandle, OS.GTK_STATE_NORMAL, color);
+ setForegroundColor (fixedHandle, color);
+ if (labelHandle != 0) setForegroundColor (labelHandle, color);
+ if (imageHandle != 0) setForegroundColor (imageHandle, color);
}
void setOrientation () {