summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatoly Spektor <aspektor@redhat.com>2013-07-19 10:01:39 -0400
committerArun Thondapu <arunkumar.thondapu@in.ibm.com>2013-07-22 13:04:26 +0530
commitb1b4091645a19f287c10cd854defb00356724eb8 (patch)
tree5242a7bfcf90cbda8b6e84b0c15993151731a9e5
parent7460be01cd1d48f9eb991a9b41d5cdea86e3edaa (diff)
downloadeclipse.platform.swt-b1b4091645a19f287c10cd854defb00356724eb8.tar.gz
eclipse.platform.swt-b1b4091645a19f287c10cd854defb00356724eb8.tar.xz
eclipse.platform.swt-b1b4091645a19f287c10cd854defb00356724eb8.zip
Bug 413325 - Remove unused version guard 2.10 from FontDialog widget
Signed-off-by: Anatoly Spektor <aspektor@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FontDialog.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FontDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FontDialog.java
index a98c2afe1f..2d26f519b2 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FontDialog.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FontDialog.java
@@ -165,10 +165,8 @@ public FontData 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 (fontData != null) {
Font font = new Font (display, fontData);