summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Accessibility
diff options
context:
space:
mode:
authorAnatoly Spektor <aspektor@redhat.com>2012-08-03 10:07:07 -0400
committerArun Thondapu <arunkumar.thondapu@in.ibm.com>2012-08-06 17:49:12 +0530
commit31b7a613958123368d896ee9b0a636412f2a598b (patch)
tree8733974da7d036726370ceac33b28dad40240962 /bundles/org.eclipse.swt/Eclipse SWT Accessibility
parent2c810dc09ebe584d949d1446e7fe61dd64fa3e80 (diff)
downloadeclipse.platform.swt-31b7a613958123368d896ee9b0a636412f2a598b.tar.gz
eclipse.platform.swt-31b7a613958123368d896ee9b0a636412f2a598b.tar.xz
eclipse.platform.swt-31b7a613958123368d896ee9b0a636412f2a598b.zip
Bug 386145 Use gtk_widget_get_window() instead of GTK_WIDGET_WINDOW in newer GTK+
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Accessibility')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleObject.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleObject.java b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleObject.java
index 92c38a3f7d..0499c3ea4e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleObject.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleObject.java
@@ -3462,7 +3462,12 @@ class AccessibleObject {
}
if (gtkAccessible.widget == 0) return;
int /*long*/ topLevel = ATK.gtk_widget_get_toplevel (gtkAccessible.widget);
- int /*long*/ window = OS.GTK_WIDGET_WINDOW (topLevel);
+ int /*long*/ window;
+ if (OS.GTK_VERSION >= OS.VERSION(2, 14, 0)){
+ window = OS.gtk_widget_get_window (topLevel);
+ } else {
+ window = OS.GTK_WIDGET_WINDOW (topLevel);
+ }
OS.gdk_window_get_origin (window, x, y);
}