Mercurial > projects > dwt-linux
diff dwt/widgets/Link.d @ 238:380bad9f6852
reverted char[] to String
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:42:55 +0200 |
parents | 08789b28bdf3 |
children | ce446666f5a2 |
line wrap: on
line diff
--- a/dwt/widgets/Link.d Sat Apr 26 10:01:30 2008 +0200 +++ b/dwt/widgets/Link.d Mon May 05 00:42:55 2008 +0200 @@ -69,12 +69,12 @@ alias Control.fixStyle fixStyle; alias Control.setBounds setBounds; - char[] text; + String text; TextLayout layout; Color linkColor, disabledColor; Point [] offsets; Point selection; - char[] [] ids; + String [] ids; int [] mnemonics; int focusIndex; @@ -268,7 +268,7 @@ }); } -override char[] getNameText () { +override String getNameText () { return getText (); } @@ -312,7 +312,7 @@ * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */ -public char[] getText () { +public String getText () { checkWidget (); return text; } @@ -525,10 +525,10 @@ eventTable.unhook (DWT.DefaultSelection, listener); } -char[] parse (char[] string) { +String parse (String string) { int length_ = string.length; offsets = new Point[]( length_ / 4 ); - ids = new char[][]( length_ / 4 ); + ids = new String[]( length_ / 4 ); mnemonics = new int[] ( length_ / 4 + 1 ); Text8 result = new Text8 (); char [] buffer = string.dup; @@ -648,7 +648,7 @@ Point [] newOffsets = new Point [linkIndex]; System.arraycopy (offsets, 0, newOffsets, 0, linkIndex); offsets = newOffsets; - char[] [] newIDs = new char[] [linkIndex]; + String [] newIDs = new String [linkIndex]; System.arraycopy (ids, 0, newIDs, 0, linkIndex); ids = newIDs; int [] newMnemonics = new int [linkIndex + 1]; @@ -714,7 +714,7 @@ * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */ -public void setText (char[] string) { +public void setText (String string) { checkWidget (); if (string is null) error (DWT.ERROR_NULL_ARGUMENT); if (string.equals(text)) return;