Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod2012-07-17 19:53:16 +0000
committerCarolyn MacLeod2012-07-17 20:33:58 +0000
commit7b41b8f3600b0f4a314596385689f3e583236386 (patch)
tree20e3d6977e473fbbbde54a1b5e56d531ebeabe72
parent25b254d3df9cb79f6d75bd4d5939285f1c37e273 (diff)
downloadeclipse.platform.swt-7b41b8f3600b0f4a314596385689f3e583236386.tar.gz
eclipse.platform.swt-7b41b8f3600b0f4a314596385689f3e583236386.tar.xz
eclipse.platform.swt-7b41b8f3600b0f4a314596385689f3e583236386.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