summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java
diff options
context:
space:
mode:
authorBilly Biggs <bbiggs>2005-05-30 21:48:14 +0000
committerBilly Biggs <bbiggs>2005-05-30 21:48:14 +0000
commitae629f7d4f3b532c7208f67a64cca66d5eb87548 (patch)
tree92a0704a754e85875828248d44c6791230828783 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java
parentcd672be0f1ebd37779f5b5004c0074397930581e (diff)
downloadeclipse.platform.swt-ae629f7d4f3b532c7208f67a64cca66d5eb87548.tar.gz
eclipse.platform.swt-ae629f7d4f3b532c7208f67a64cca66d5eb87548.tar.xz
eclipse.platform.swt-ae629f7d4f3b532c7208f67a64cca66d5eb87548.zip
97011
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java
index d4c79242b8..88e8adbbcf 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java
@@ -222,8 +222,12 @@ void createItem (TabItem item, int index) {
item.pageHandle = pageHandle;
System.arraycopy (items, index, items, index + 1, itemCount++ - index);
items [index] = item;
- item.setForegroundColor (getForegroundColor ());
- item.setFontDescription (getFontDescription ());
+ if ((state & FOREGROUND) != 0) {
+ item.setForegroundColor (getForegroundColor());
+ }
+ if ((state & FONT) != 0) {
+ item.setFontDescription (getFontDescription());
+ }
if (itemCount == 1) {
OS.g_signal_handlers_block_matched (handle, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, SWITCH_PAGE);
OS.gtk_notebook_set_current_page (handle, 0);