diff options
author | Anatoly Spektor <aspektor@redhat.com> | 2013-07-22 10:51:20 -0400 |
---|---|---|
committer | Anatoly Spektor <aspektor@redhat.com> | 2013-07-22 10:51:20 -0400 |
commit | 3bf2355360a172b7f0bd784e2d496311651cc506 (patch) | |
tree | 4a8333636f21d77e2b9652b4a4046e08e7b69e62 | |
parent | 10c11bda2f1305fd9baa324e49c0ff8d8b57d28f (diff) | |
download | eclipse.platform.swt-3bf2355360a172b7f0bd784e2d496311651cc506.tar.gz eclipse.platform.swt-3bf2355360a172b7f0bd784e2d496311651cc506.tar.xz eclipse.platform.swt-3bf2355360a172b7f0bd784e2d496311651cc506.zip |
Bug #413457 - Remove unused version guards 2.8 and 2.10 in FileDialogcleanup_fileDialog_210
Signed-off-by: Anatoly Spektor <aspektor@redhat.com>
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java | 10 |
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 0903bc80d2..96845a2392 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 */ |