summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2005-11-21 21:06:24 +0000
committerFelipe Heidrich <fheidric>2005-11-21 21:06:24 +0000
commitd006a9e50b3f761bea3cd78dda3216ab220b9f8d (patch)
treedf1234f76762f74620649020fa4ce9ebd3ab63b1
parent97f3459e7c761ee3d35bedb6ed5c58ee7a356656 (diff)
downloadeclipse.platform.swt-d006a9e50b3f761bea3cd78dda3216ab220b9f8d.tar.gz
eclipse.platform.swt-d006a9e50b3f761bea3cd78dda3216ab220b9f8d.tar.xz
eclipse.platform.swt-d006a9e50b3f761bea3cd78dda3216ab220b9f8d.zip
avoid flash on GTK
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
index 3c0f4f6959..9706d5d8fb 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
@@ -1165,7 +1165,7 @@ public class StyledText extends Canvas {
* @see #getStyle
*/
public StyledText(Composite parent, int style) {
- super(parent, checkStyle(style | SWT.NO_REDRAW_RESIZE | SWT.NO_BACKGROUND | SWT.DOUBLE_BUFFERED));
+ super(parent, checkStyle(style));
// set the bg/fg in the OS to ensure that these are the same as StyledText, necessary
// for ensuring that the bg/fg the IME box uses is the same as what StyledText uses
super.setForeground(getForeground());
@@ -1530,6 +1530,8 @@ static int checkStyle(int style) {
style &= ~SWT.H_SCROLL;
}
}
+ style |= SWT.NO_REDRAW_RESIZE | SWT.DOUBLE_BUFFERED;
+ if (!IS_GTK) style |= SWT.NO_BACKGROUND;
return style;
}
/**