summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatoly Spektor <aspektor@redhat.com>2013-07-17 15:27:18 -0400
committerAnatoly Spektor <aspektor@redhat.com>2013-07-17 15:27:18 -0400
commit4b8b41b017dffa980b77dbd6f121490683a7e874 (patch)
tree89607cc6785a45fa69d34b83b18dfd61f3399391
parenta93fce3f5105854eeb8341437779e5e3e2bb72f1 (diff)
downloadeclipse.platform.swt-messagebox_cleanup_210.tar.gz
eclipse.platform.swt-messagebox_cleanup_210.tar.xz
eclipse.platform.swt-messagebox_cleanup_210.zip
Bug 413199 - MessageBox uses unsued 2.10 version guardmessagebox_cleanup_210
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 ();