comparison dwt/widgets/ExpandItem.d @ 255:5a30aa9820f3

removed tango.stdc.stringz imports and allow null for arrays and string arguments.
author Frank Benoit <benoit@tionex.de>
date Sun, 15 Jun 2008 22:32:20 +0200
parents ce446666f5a2
children c0d810de7093
comparison
equal deleted inserted replaced
254:8bca790583c3 255:5a30aa9820f3
29 import dwt.widgets.ExpandBar; 29 import dwt.widgets.ExpandBar;
30 import dwt.widgets.ImageList; 30 import dwt.widgets.ImageList;
31 import dwt.widgets.Event; 31 import dwt.widgets.Event;
32 32
33 import Math = tango.math.Math; 33 import Math = tango.math.Math;
34 static import tango.stdc.stringz;
35 34
36 /** 35 /**
37 * Instances of this class represent a selectable user interface object 36 * Instances of this class represent a selectable user interface object
38 * that represents a expandable item in a expand bar. 37 * that represents a expandable item in a expand bar.
39 * <p> 38 * <p>
604 } 603 }
605 604
606 public override void setText (String string) { 605 public override void setText (String string) {
607 super.setText (string); 606 super.setText (string);
608 if (OS.GTK_VERSION >= OS.buildVERSION (2, 4, 0)) { 607 if (OS.GTK_VERSION >= OS.buildVERSION (2, 4, 0)) {
609 OS.gtk_label_set_text (labelHandle, tango.stdc.stringz.toStringz(string)); 608 OS.gtk_label_set_text (labelHandle, toStringz(string));
610 } else { 609 } else {
611 redraw (); 610 redraw ();
612 } 611 }
613 } 612 }
614 613