summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatoly Spektor <aspektor@redhat.com>2013-07-19 10:51:30 -0400
committerAnatoly Spektor <aspektor@redhat.com>2013-07-19 10:51:30 -0400
commit87e59c313269976184971e6204c768f732867c18 (patch)
treeb7fc19752e695afcc9c94d045106c89d855f23b2
parent3badf881a37b9808e3b829dac9255767efd7162c (diff)
downloadeclipse.platform.swt-cleanup_colordialog_210.tar.gz
eclipse.platform.swt-cleanup_colordialog_210.tar.xz
eclipse.platform.swt-cleanup_colordialog_210.zip
Bug 413337 - Remove unused version guard 2.10 from ColorDialog widgetcleanup_colordialog_210
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 ea209fb67f..c38d7a2bcb 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)) {