summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatoly Spektor <aspektor@redhat.com>2013-07-19 10:34:23 -0400
committerAnatoly Spektor <aspektor@redhat.com>2013-07-19 10:34:23 -0400
commita29942e1c61b9b5ee472d81db15640fae8f341ec (patch)
tree92d19286a026ecc23401ed934f2f69191eb48ecc
parent3badf881a37b9808e3b829dac9255767efd7162c (diff)
downloadeclipse.platform.swt-a29942e1c61b9b5ee472d81db15640fae8f341ec.tar.gz
eclipse.platform.swt-a29942e1c61b9b5ee472d81db15640fae8f341ec.tar.xz
eclipse.platform.swt-a29942e1c61b9b5ee472d81db15640fae8f341ec.zip
Bug 413334 - DirectoryDialog widget uses unused 2.10 version guard cleanup_directorydialog_210
Signed-off-by: Anatoly Spektor <aspektor@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DirectoryDialog.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DirectoryDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DirectoryDialog.java
index 2493bf3a4b..4563d29ad9 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DirectoryDialog.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DirectoryDialog.java
@@ -128,10 +128,8 @@ String openChooserDialog () {
handle = OS.gtk_file_chooser_dialog_new (titleBytes, shellHandle, OS.GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, OS.GTK_STOCK_OK (), OS.GTK_RESPONSE_OK, OS.GTK_STOCK_CANCEL (), OS.GTK_RESPONSE_CANCEL, 0);
}
if (handle == 0) error (SWT.ERROR_NO_HANDLES);
- 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);
OS.gtk_window_set_modal (handle, true);
long /*int*/ pixbufs = OS.gtk_window_get_icon_list (shellHandle);
if (pixbufs != 0) {