Changeset 238:380bad9f6852 for dwt/widgets/TableItem.d
- Timestamp:
- 05/04/08 18:42:55 (4 years ago)
- Files:
-
- dwt/widgets/TableItem.d (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/widgets/TableItem.d
r158 r238 12 12 *******************************************************************************/ 13 13 module dwt.widgets.TableItem; 14 15 import dwt.dwthelper.utils; 14 16 15 17 … … 568 570 } 569 571 570 override char[]getNameText () {572 override String getNameText () { 571 573 if ((parent.style & DWT.VIRTUAL) !is 0) { 572 574 if (!cached) return "*virtual*"; //$NON-NLS-1$ … … 590 592 } 591 593 592 public override char[]getText () {594 public override String getText () { 593 595 checkWidget (); 594 596 if (!parent.checkData (this)) error (DWT.ERROR_WIDGET_DISPOSED); … … 608 610 * </ul> 609 611 */ 610 public char[]getText (int index) {612 public String getText (int index) { 611 613 checkWidget (); 612 614 if (!parent.checkData (this)) error (DWT.ERROR_WIDGET_DISPOSED); … … 617 619 OS.gtk_tree_model_get1 (parent.modelHandle, handle, modelIndex + Table.CELL_TEXT, cast(void**) &ptr); 618 620 if (ptr is null) return ""; 619 char[]res = tango.stdc.stringz.fromStringz( ptr ).dup;621 String res = tango.stdc.stringz.fromStringz( ptr ).dup; 620 622 OS.g_free (ptr); 621 623 return res; … … 1229 1231 * </ul> 1230 1232 */ 1231 public void setText (int index, char[]string) {1233 public void setText (int index, String string) { 1232 1234 checkWidget (); 1233 1235 if (string is null) error (DWT.ERROR_NULL_ARGUMENT); … … 1250 1252 } 1251 1253 1252 public override void setText ( char[]string) {1254 public override void setText (String string) { 1253 1255 checkWidget (); 1254 1256 setText (0, string); … … 1268 1270 * </ul> 1269 1271 */ 1270 public void setText ( char[][] strings) {1272 public void setText (String [] strings) { 1271 1273 checkWidget (); 1272 1274 if (strings is null) error (DWT.ERROR_NULL_ARGUMENT); 1273 1275 for (int i=0; i<strings.length; i++) { 1274 char[]string = strings [i];1276 String string = strings [i]; 1275 1277 if (string !is null) setText (i, string); 1276 1278 }
