summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2007-07-04 18:01:06 +0000
committerFelipe Heidrich <fheidric>2007-07-04 18:01:06 +0000
commit1a49efbb25136d6dfe28f67d55d33796921e91e1 (patch)
tree6328d6b3e92da0c48a33a4c90d9690174979f31f
parentb4c737594fb0083225a368c66a25f03acbe9515b (diff)
downloadeclipse.platform.swt-1a49efbb25136d6dfe28f67d55d33796921e91e1.tar.gz
eclipse.platform.swt-1a49efbb25136d6dfe28f67d55d33796921e91e1.tar.xz
eclipse.platform.swt-1a49efbb25136d6dfe28f67d55d33796921e91e1.zip
Bug 189649 Link widget renders mnemonics on the Mac
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Link.java20
1 files changed, 12 insertions, 8 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Link.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Link.java
index fedf5d67f6..e7c6c4caed 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Link.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Link.java
@@ -641,14 +641,18 @@ public void setText (String string) {
Point point = offsets [i];
layout.setStyle (linkStyle, point.x, point.y);
}
- TextStyle mnemonicStyle = new TextStyle (null, null, null);
- mnemonicStyle.underline = true;
- for (int i = 0; i < mnemonics.length; i++) {
- int mnemonic = mnemonics [i];
- if (mnemonic != -1) {
- layout.setStyle (mnemonicStyle, mnemonic, mnemonic);
- }
- }
+ /*
+ * This code is intentionally commented. Mnemonics are
+ * drawn in Macintosh.
+ */
+// TextStyle mnemonicStyle = new TextStyle (null, null, null);
+// mnemonicStyle.underline = true;
+// for (int i = 0; i < mnemonics.length; i++) {
+// int mnemonic = mnemonics [i];
+// if (mnemonic != -1) {
+// layout.setStyle (mnemonicStyle, mnemonic, mnemonic);
+// }
+// }
redraw ();
}