From 3bf2355360a172b7f0bd784e2d496311651cc506 Mon Sep 17 00:00:00 2001 From: Anatoly Spektor Date: Mon, 22 Jul 2013 10:51:20 -0400 Subject: Bug #413457 - Remove unused version guards 2.8 and 2.10 in FileDialog Signed-off-by: Anatoly Spektor --- .../Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'bundles') 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 */ -- cgit