summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorAnatoly Spektor2013-07-22 10:51:20 (EDT)
committer Alexander Kurtakov2013-07-22 13:40:13 (EDT)
commitcf7344c917d28549fa1275a28c1472116f28f35a (patch)
tree4a8333636f21d77e2b9652b4a4046e08e7b69e62
parent10c11bda2f1305fd9baa324e49c0ff8d8b57d28f (diff)
downloadeclipse.platform.swt-cf7344c917d28549fa1275a28c1472116f28f35a.zip
eclipse.platform.swt-cf7344c917d28549fa1275a28c1472116f28f35a.tar.gz
eclipse.platform.swt-cf7344c917d28549fa1275a28c1472116f28f35a.tar.bz2
Bug #413457 - Remove unused version guards 2.8 and 2.10 in FileDialog
Signed-off-by: Anatoly Spektor <aspektor@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java
index 0903bc8..96845a2 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java
@@ -326,10 +326,8 @@ String openChooserDialog () {
}
if (handle == 0) error (SWT.ERROR_NO_HANDLES);
OS.gtk_window_set_modal (handle, true);
- if (OS.GTK_VERSION >= OS.VERSION (2, 10, 0)) {
- long /*int*/ group = OS.gtk_window_get_group(0);
- OS.gtk_window_group_add_window (group, handle);
- }
+ long /*int*/ group = OS.gtk_window_get_group(0);
+ OS.gtk_window_group_add_window (group, handle);
long /*int*/ pixbufs = OS.gtk_window_get_icon_list (shellHandle);
if (pixbufs != 0) {
OS.gtk_window_set_icon_list (handle, pixbufs);
@@ -439,9 +437,7 @@ void presetChooserDialog () {
/* Set overwrite mode */
if ((style & SWT.SAVE) != 0) {
- if (OS.GTK_VERSION >= OS.VERSION (2, 8, 0)) {
- OS.gtk_file_chooser_set_do_overwrite_confirmation (handle, overwrite);
- }
+ OS.gtk_file_chooser_set_do_overwrite_confirmation (handle, overwrite);
}
/* Set the extension filters */