summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorAnatoly Spektor2013-07-19 10:56:01 (EDT)
committer Arun Thondapu2013-07-22 03:52:59 (EDT)
commit10c11bda2f1305fd9baa324e49c0ff8d8b57d28f (patch)
tree1a2c8fa0dea5bf501068d1e0409e7ff33d5a387c
parentef7e4c79e97018c37276b3f8823b2dd5b256eea5 (diff)
downloadeclipse.platform.swt-10c11bda2f1305fd9baa324e49c0ff8d8b57d28f.zip
eclipse.platform.swt-10c11bda2f1305fd9baa324e49c0ff8d8b57d28f.tar.gz
eclipse.platform.swt-10c11bda2f1305fd9baa324e49c0ff8d8b57d28f.tar.bz2
Bug 413338 - Remove unused 2.10 version guard from Button widget
Signed-off-by: Anatoly Spektor <aspektor@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java
index 65fe0c4..7b91600 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java
@@ -319,9 +319,7 @@ void createHandle (int index) {
OS.gtk_container_add (boxHandle, labelHandle);
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);
}
}
OS.gtk_container_add (fixedHandle, handle);