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/TreeItem.d

    r158 r238  
    1212 *******************************************************************************/ 
    1313module dwt.widgets.TreeItem; 
     14 
     15import dwt.dwthelper.utils; 
    1416 
    1517 
     
    800802} 
    801803 
    802 override char[] getNameText () { 
     804override String getNameText () { 
    803805    if ((parent.style & DWT.VIRTUAL) !is 0) { 
    804806        if (!cached) return "*virtual*"; //$NON-NLS-1$ 
     
    850852} 
    851853 
    852 public override char[] getText () { 
     854public override String getText () { 
    853855    checkWidget (); 
    854856    if (!parent.checkData (this)) error (DWT.ERROR_WIDGET_DISPOSED); 
     
    870872 * @since 3.1 
    871873 */ 
    872 public char[] getText (int index) { 
     874public String getText (int index) { 
    873875    checkWidget (); 
    874876    if (!parent.checkData (this)) error (DWT.ERROR_WIDGET_DISPOSED); 
     
    879881    OS.gtk_tree_model_get1 (parent.modelHandle, handle, modelIndex + Tree.CELL_TEXT, &ptr); 
    880882    if (ptr is null) return ""; //$NON-NLS-1$ 
    881     char[] res = tango.stdc.stringz.fromStringz( cast(char*)ptr ).dup; 
     883    String res = tango.stdc.stringz.fromStringz( cast(char*)ptr ).dup; 
    882884    OS.g_free (ptr); 
    883885    return res; 
     
    16111613 * @since 3.1 
    16121614 */ 
    1613 public void setText (int index, char[] string) { 
     1615public void setText (int index, String string) { 
    16141616    checkWidget (); 
    16151617    if (string is null) error (DWT.ERROR_NULL_ARGUMENT); 
     
    16321634} 
    16331635 
    1634 public override void setText (char[] string) { 
     1636public override void setText (String string) { 
    16351637    checkWidget (); 
    16361638    setText (0, string); 
     
    16521654 * @since 3.1 
    16531655 */ 
    1654 public void setText (char[] [] strings) { 
     1656public void setText (String [] strings) { 
    16551657    checkWidget (); 
    16561658    if (strings is null) error (DWT.ERROR_NULL_ARGUMENT); 
    16571659    for (int i=0; i<strings.length; i++) { 
    1658         char[] string = strings [i]; 
     1660        String string = strings [i]; 
    16591661        if (string !is null) setText (i, string); 
    16601662    }