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

    r158 r238  
    1212 *******************************************************************************/ 
    1313module dwt.widgets.TableItem; 
     14 
     15import dwt.dwthelper.utils; 
    1416 
    1517 
     
    568570} 
    569571 
    570 override char[] getNameText () { 
     572override String getNameText () { 
    571573    if ((parent.style & DWT.VIRTUAL) !is 0) { 
    572574        if (!cached) return "*virtual*"; //$NON-NLS-1$ 
     
    590592} 
    591593 
    592 public override char[] getText () { 
     594public override String getText () { 
    593595    checkWidget (); 
    594596    if (!parent.checkData (this)) error (DWT.ERROR_WIDGET_DISPOSED); 
     
    608610 * </ul> 
    609611 */ 
    610 public char[] getText (int index) { 
     612public String getText (int index) { 
    611613    checkWidget (); 
    612614    if (!parent.checkData (this)) error (DWT.ERROR_WIDGET_DISPOSED); 
     
    617619    OS.gtk_tree_model_get1 (parent.modelHandle, handle, modelIndex + Table.CELL_TEXT, cast(void**) &ptr); 
    618620    if (ptr is null) return ""; 
    619     char[] res = tango.stdc.stringz.fromStringz( ptr ).dup; 
     621    String res = tango.stdc.stringz.fromStringz( ptr ).dup; 
    620622    OS.g_free (ptr); 
    621623    return res; 
     
    12291231 * </ul> 
    12301232 */ 
    1231 public void setText (int index, char[] string) { 
     1233public void setText (int index, String string) { 
    12321234    checkWidget (); 
    12331235    if (string is null) error (DWT.ERROR_NULL_ARGUMENT); 
     
    12501252} 
    12511253 
    1252 public override void setText (char[] string) { 
     1254public override void setText (String string) { 
    12531255    checkWidget (); 
    12541256    setText (0, string); 
     
    12681270 * </ul> 
    12691271 */ 
    1270 public void setText (char[] [] strings) { 
     1272public void setText (String [] strings) { 
    12711273    checkWidget (); 
    12721274    if (strings is null) error (DWT.ERROR_NULL_ARGUMENT); 
    12731275    for (int i=0; i<strings.length; i++) { 
    1274         char[] string = strings [i]; 
     1276        String string = strings [i]; 
    12751277        if (string !is null) setText (i, string); 
    12761278    }