summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatoly Spektor <aspektor@redhat.com>2013-07-17 15:06:57 -0400
committerAnaroly Spektor <aspektor@redhat.com>2013-07-17 15:10:52 -0400
commit1d49008c7fd4ef3e59d258f460e6b0595099517f (patch)
tree265affe935070cd8a26ae8bc2aa037071132e599
parenta93fce3f5105854eeb8341437779e5e3e2bb72f1 (diff)
downloadeclipse.platform.swt-label_cleanup_210.tar.gz
eclipse.platform.swt-label_cleanup_210.tar.xz
eclipse.platform.swt-label_cleanup_210.zip
Bug 413195 - Remove unused version guard from Label widgetlabel_cleanup_210
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 b0a7433106..0b2eb3b15b 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 ();
}