Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2012-08-01 17:34:00 +0000
committerSilenio Quarti2012-08-01 17:34:00 +0000
commite20456e4917934e3819ddfffb95073320e334578 (patch)
tree655b358b38ef8207307782fd50a213a28bdf8005 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
parentc6e846c2a1f2f65f82baf98b5937ac087d800678 (diff)
downloadeclipse.platform.swt-e20456e4917934e3819ddfffb95073320e334578.tar.gz
eclipse.platform.swt-e20456e4917934e3819ddfffb95073320e334578.tar.xz
eclipse.platform.swt-e20456e4917934e3819ddfffb95073320e334578.zip
add gtk_widhet_get_mapped() helper function to simply code
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
index 66262e3473..2a62e480cc 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
@@ -2005,11 +2005,7 @@ public void setVisible (boolean visible) {
updateModal ();
}
showWithParent = visible;
- if (OS.GTK_VERSION >= OS.VERSION (2, 20, 0)) {
- if (OS.gtk_widget_get_mapped(shellHandle) == visible) return;
- }else{
- if ((OS.GTK_WIDGET_MAPPED (shellHandle) == visible)) return;
- }
+ if (gtk_widget_get_mapped (shellHandle) == visible) return;
if (visible) {
if (center && !moved) {
center ();

Back to the top