Mercurial > projects > dwt-linux
comparison dwt/widgets/ExpandItem.d @ 238:380bad9f6852
reverted char[] to String
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:42:55 +0200 |
parents | 17f8449522fd |
children | ce446666f5a2 |
comparison
equal
deleted
inserted
replaced
237:98b80b00af79 | 238:380bad9f6852 |
---|---|
9 * IBM Corporation - initial API and implementation | 9 * IBM Corporation - initial API and implementation |
10 * Port to the D programming language: | 10 * Port to the D programming language: |
11 * Frank Benoit <benoit@tionex.de> | 11 * Frank Benoit <benoit@tionex.de> |
12 *******************************************************************************/ | 12 *******************************************************************************/ |
13 module dwt.widgets.ExpandItem; | 13 module dwt.widgets.ExpandItem; |
14 | |
15 import dwt.dwthelper.utils; | |
14 | 16 |
15 | 17 |
16 import dwt.DWT; | 18 import dwt.DWT; |
17 import dwt.DWTException; | 19 import dwt.DWTException; |
18 import dwt.graphics.GC; | 20 import dwt.graphics.GC; |
592 redraw (); | 594 redraw (); |
593 } | 595 } |
594 } | 596 } |
595 } | 597 } |
596 | 598 |
597 public override void setText (char[] string) { | 599 public override void setText (String string) { |
598 super.setText (string); | 600 super.setText (string); |
599 if (OS.GTK_VERSION >= OS.buildVERSION (2, 4, 0)) { | 601 if (OS.GTK_VERSION >= OS.buildVERSION (2, 4, 0)) { |
600 OS.gtk_label_set_text (labelHandle, tango.stdc.stringz.toStringz(string)); | 602 OS.gtk_label_set_text (labelHandle, tango.stdc.stringz.toStringz(string)); |
601 } else { | 603 } else { |
602 redraw (); | 604 redraw (); |