Show
Ignore:
Timestamp:
05/04/08 18:42:55 (4 years ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

reverted char[] to String

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/widgets/ToolTip.d

    r211 r238  
    1212 *******************************************************************************/ 
    1313module dwt.widgets.ToolTip; 
     14 
     15import dwt.dwthelper.utils; 
    1416 
    1517import dwt.widgets.Widget; 
     
    5153public class ToolTip : Widget { 
    5254    Shell parent; 
    53     char[] text, message; 
     55    String text, message; 
    5456    TrayItem item; 
    5557    int x, y, timerId; 
     
    333335 * </ul> 
    334336 */ 
    335 public char[] getMessage () { 
     337public String getMessage () { 
    336338    checkWidget (); 
    337339    return message; 
    338340} 
    339341 
    340 override char[] getNameText () { 
     342override String getNameText () { 
    341343    return getText (); 
    342344} 
     
    401403 * </ul> 
    402404 */ 
    403 public char[] getText () { 
     405public String getText () { 
    404406    checkWidget (); 
    405407    return text; 
     
    444446    if (spikeAbove) y += TIP_HEIGHT; 
    445447    if (layoutText !is null) { 
    446         char[] buffer = null; 
     448        String buffer = null; 
    447449        int id = style & (DWT.ICON_ERROR | DWT.ICON_INFORMATION | DWT.ICON_WARNING); 
    448450        switch (id) { 
     
    669671 * </ul> 
    670672 */ 
    671 public void setMessage (char[] string) { 
     673public void setMessage (String string) { 
    672674    checkWidget (); 
    673675    if (string is null) error (DWT.ERROR_NULL_ARGUMENT); 
     
    699701 * </ul> 
    700702 */ 
    701 public void setText (char[] string) { 
     703public void setText (String string) { 
    702704    checkWidget (); 
    703705    if (string is null) error (DWT.ERROR_NULL_ARGUMENT); 
     
    748750        } else { 
    749751            auto vboxHandle = parent.vboxHandle; 
    750             char[] string = text; 
     752            String string = text; 
    751753            if (text.length > 0) string ~= "\n\n"; 
    752754            string ~= message;