Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatoly Spektor2013-07-17 19:27:18 +0000
committerArun Thondapu2013-07-18 09:36:34 +0000
commitb0e12cd4442ff21e8b024ce4ebf8ef96a0f8bc6e (patch)
treed2a3d3a409d5bce0a593c2c09c9eb4c9337e8403
parent599e467b0978b4d9b759eab92e551eb3c58a6f09 (diff)
downloadeclipse.platform.swt-b0e12cd4442ff21e8b024ce4ebf8ef96a0f8bc6e.tar.gz
eclipse.platform.swt-b0e12cd4442ff21e8b024ce4ebf8ef96a0f8bc6e.tar.xz
eclipse.platform.swt-b0e12cd4442ff21e8b024ce4ebf8ef96a0f8bc6e.zip
Bug 413199 - MessageBox uses unsued 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/MessageBox.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/MessageBox.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/MessageBox.java
index 3d3aeeea15..52360d3433 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/MessageBox.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/MessageBox.java
@@ -171,10 +171,8 @@ public int open () {
* parent shells, it is required to assign the
* dialog to the same window group as of the shells.
*/
- 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);
if (OS.gtk_window_get_modal (handle)) {
oldModal = display.getModalDialog ();

Back to the top