diff dwt/widgets/Item.d @ 238:380bad9f6852

reverted char[] to String
author Frank Benoit <benoit@tionex.de>
date Mon, 05 May 2008 00:42:55 +0200
parents de2578a843a7
children 5a30aa9820f3
line wrap: on
line diff
--- a/dwt/widgets/Item.d	Sat Apr 26 10:01:30 2008 +0200
+++ b/dwt/widgets/Item.d	Mon May 05 00:42:55 2008 +0200
@@ -12,6 +12,8 @@
  *******************************************************************************/
 module dwt.widgets.Item;
 
+import dwt.dwthelper.utils;
+
 
 import dwt.widgets.Widget;
 import dwt.DWT;
@@ -30,7 +32,7 @@
  */
 
 public abstract class Item : Widget {
-    char[] text;
+    String text;
     Image image;
 
 /**
@@ -119,7 +121,7 @@
     return image;
 }
 
-override char[] getNameText () {
+override String getNameText () {
     return getText ();
 }
 
@@ -134,7 +136,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;
 }
@@ -178,7 +180,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);
     text = string.dup;