summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabItem.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/TabItem.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/TabItem.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabItem.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabItem.java
index dfc6719389..4d8aa83989 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabItem.java
@@ -248,8 +248,9 @@ void setFontDescription (int /*long*/ font) {
}
void setForegroundColor (GdkColor color) {
- OS.gtk_widget_modify_fg (labelHandle, OS.GTK_STATE_NORMAL, color);
- OS.gtk_widget_modify_fg (imageHandle, OS.GTK_STATE_NORMAL, color);
+ /* Don't set the color in vbox handle (it doesn't draw) */
+ setForegroundColor (labelHandle, color);
+ setForegroundColor (imageHandle, color);
}
public void setImage (Image image) {