aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatoly Spektor2013-07-17 15:06:57 (EDT)
committerArun Thondapu2013-07-18 05:46:45 (EDT)
commitf44fbcfe05943df863742d52c93eee02ea76cf56 (patch)
treef423a9c8f0a40831db90824affed90a2841aea97
parent89226ef66766ab960eecbb9ea502805403181edb (diff)
downloadeclipse.platform.swt-f44fbcfe05943df863742d52c93eee02ea76cf56.zip
eclipse.platform.swt-f44fbcfe05943df863742d52c93eee02ea76cf56.tar.gz
eclipse.platform.swt-f44fbcfe05943df863742d52c93eee02ea76cf56.tar.bz2
Bug 413195 - Remove unused version guard from Label widget
Signed-off-by: Anatoly Spektor <aspektor@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java4
1 files changed, 1 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 b0a7433..0b2eb3b 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
@@ -233,9 +233,7 @@ void createHandle (int index) {
if ((style & SWT.SEPARATOR) != 0) return;
if ((style & SWT.WRAP) != 0) {
OS.gtk_label_set_line_wrap (labelHandle, true);
- if (OS.GTK_VERSION >= OS.VERSION (2, 10, 0)) {
- OS.gtk_label_set_line_wrap_mode (labelHandle, OS.PANGO_WRAP_WORD_CHAR);
- }
+ OS.gtk_label_set_line_wrap_mode (labelHandle, OS.PANGO_WRAP_WORD_CHAR);
}
setAlignment ();
}