diff options
author | Carolyn MacLeod <Carolyn_MacLeod@ca.ibm.com> | 2012-07-17 15:53:16 -0400 |
---|---|---|
committer | Carolyn MacLeod <Carolyn_MacLeod@ca.ibm.com> | 2012-07-17 15:53:16 -0400 |
commit | 9e301b882d171ae009d1e8510320190a588dbc21 (patch) | |
tree | 2ae11133b5e12dfbcca684b6e63d04ee38de3f9f /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt | |
parent | a187354d39a8bd0bfd0b035b8db41e0943d6b46f (diff) | |
download | eclipse.platform.swt-9e301b882d171ae009d1e8510320190a588dbc21.tar.gz eclipse.platform.swt-9e301b882d171ae009d1e8510320190a588dbc21.tar.xz eclipse.platform.swt-9e301b882d171ae009d1e8510320190a588dbc21.zip |
Bug 384725 - linux accessibility broken
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java | 10 |
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); } /** |