Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Williams2018-09-17 20:01:09 +0000
committerEric Williams2018-09-17 20:19:45 +0000
commitd20c5f1f493092113480fb66ee1d32b4e5f29c40 (patch)
tree126cc031e53909ec96400da27530a28af98fc0be
parenta4765265e60b6e3ff36b162f819bba2fcee3c9ff (diff)
downloadeclipse.platform.swt-d20c5f1f493092113480fb66ee1d32b4e5f29c40.tar.gz
eclipse.platform.swt-d20c5f1f493092113480fb66ee1d32b4e5f29c40.tar.xz
eclipse.platform.swt-d20c5f1f493092113480fb66ee1d32b4e5f29c40.zip
Bug 530841: [GTK2] Remove GTK 2.x support
Remove GTK3.2 guard, 3.4 is the minimum version. Change-Id: I9eb606f5173be8d56814f3f50f7f4d97ca382c19 Signed-off-by: Eric Williams <ericwill@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java
index 62013e7928..be377b99f7 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java
@@ -2330,12 +2330,10 @@ public void setMessage (String message) {
checkWidget ();
if (message == null) error (SWT.ERROR_NULL_ARGUMENT);
this.message = message;
- if (GTK.GTK_VERSION >= OS.VERSION (3, 2, 0)) {
- if ((style & SWT.SINGLE) != 0) {
- byte [] buffer = Converter.wcsToMbcs (message, true);
- GTK.gtk_entry_set_placeholder_text (handle, buffer);
- return;
- }
+ if ((style & SWT.SINGLE) != 0) {
+ byte [] buffer = Converter.wcsToMbcs (message, true);
+ GTK.gtk_entry_set_placeholder_text (handle, buffer);
+ return;
}
redraw (false);
}

Back to the top