diff options
author | Grant Gayed <ggayed> | 2003-03-07 16:42:11 +0000 |
---|---|---|
committer | Grant Gayed <ggayed> | 2003-03-07 16:42:11 +0000 |
commit | 794658de41efd7bd2420f00c4800c9abafc56238 (patch) | |
tree | fa4d1a7353c48b293578a1b1a8db8ebed51ce402 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java | |
parent | e649eaafb2bf2daed69263487f71021f8267838f (diff) | |
download | eclipse.platform.swt-794658de41efd7bd2420f00c4800c9abafc56238.tar.gz eclipse.platform.swt-794658de41efd7bd2420f00c4800c9abafc56238.tar.xz eclipse.platform.swt-794658de41efd7bd2420f00c4800c9abafc56238.zip |
add style bits if needed to SEPARATOR Labels
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.java | 5 |
1 files changed, 4 insertions, 1 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 ce7ddcd1f6..7fd9f07a91 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 @@ -81,7 +81,10 @@ public Label (Composite parent, int style) { } static int checkStyle (int style) { - if ((style & SWT.SEPARATOR) != 0) return style; + if ((style & SWT.SEPARATOR) != 0) { + style = checkBits (style, SWT.VERTICAL, SWT.HORIZONTAL, 0, 0, 0, 0); + return checkBits (style, SWT.SHADOW_NONE, SWT.SHADOW_IN, SWT.SHADOW_OUT, 0, 0, 0); + } return checkBits (style, SWT.LEFT, SWT.CENTER, SWT.RIGHT, 0, 0, 0); } |