Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod2012-07-17 19:53:16 +0000
committerCarolyn MacLeod2012-07-17 20:35:44 +0000
commit3b367401c6cfa5a7581d09261a0c22024fe36606 (patch)
treee1b2a26d5ffb9087f37f7e7fd3d91015b43977ac
parent95e4042fa645e4d6d39b5295da37c4bb9bbe194e (diff)
downloadeclipse.platform.swt-3b367401c6cfa5a7581d09261a0c22024fe36606.tar.gz
eclipse.platform.swt-3b367401c6cfa5a7581d09261a0c22024fe36606.tar.xz
eclipse.platform.swt-3b367401c6cfa5a7581d09261a0c22024fe36606.zip
Bug 384725 - linux accessibility broken
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java
index 8be8ddb1be..03ba2a3113 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java
@@ -1165,7 +1165,15 @@ public void setToolTipText (String string) {
}
void setToolTipText (Shell shell, String newString) {
- shell.setToolTipText (handle, newString);
+ int /*long*/ child = OS.gtk_bin_get_child (handle);
+ if ((style & SWT.DROP_DOWN) != 0) {
+ if (OS.GTK_VERSION >= OS.VERSION (2, 6, 0)) {
+ int /*long*/ list = OS.gtk_container_get_children (child);
+ child = OS.g_list_nth_data (list, 0);
+ }
+ if (arrowHandle != 0) shell.setToolTipText (arrowHandle, newString);
+ }
+ shell.setToolTipText (child != 0 ? child : handle, newString);
}
/**

Back to the top