summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatoly Spektor <aspektor@redhat.com>2013-07-19 10:34:23 -0400
committerArun Thondapu <arunkumar.thondapu@in.ibm.com>2013-07-22 13:18:28 +0530
commitad1bc0e9a7a5e44e054bd8f8f3d4eb795e227eb4 (patch)
tree4115247c7ae774bf1695791db6a28bf05bcffaff
parent471ee59e0c0de454255ffc7555f61aebec1e2033 (diff)
downloadeclipse.platform.swt-ad1bc0e9a7a5e44e054bd8f8f3d4eb795e227eb4.tar.gz
eclipse.platform.swt-ad1bc0e9a7a5e44e054bd8f8f3d4eb795e227eb4.tar.xz
eclipse.platform.swt-ad1bc0e9a7a5e44e054bd8f8f3d4eb795e227eb4.zip
Bug 413334 - DirectoryDialog widget uses unused 2.10 version guard
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) {