aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatoly Spektor2013-07-19 10:51:30 (EDT)
committerArun Thondapu2013-07-22 03:51:25 (EDT)
commitef7e4c79e97018c37276b3f8823b2dd5b256eea5 (patch)
tree12b63ef9c378759f443301e9503670617b95f4cc
parent6638802f4d6df7cd8998fe1792af3843b8c46562 (diff)
downloadeclipse.platform.swt-ef7e4c79e97018c37276b3f8823b2dd5b256eea5.zip
eclipse.platform.swt-ef7e4c79e97018c37276b3f8823b2dd5b256eea5.tar.gz
eclipse.platform.swt-ef7e4c79e97018c37276b3f8823b2dd5b256eea5.tar.bz2
Bug 413337 - Remove unused version guard 2.10 from ColorDialog widget
Signed-off-by: Anatoly Spektor <aspektor@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ColorDialog.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ColorDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ColorDialog.java
index ea209fb..c38d7a2 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ColorDialog.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ColorDialog.java
@@ -146,10 +146,8 @@ public RGB open () {
OS.g_list_free (pixbufs);
}
}
- 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);
if (OS.GTK_VERSION >= OS.VERSION (2, 14, 0)) {