Mercurial > projects > dwt-linux
comparison dwt/widgets/TableColumn.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 | 34409a2fc053 |
children | c0d810de7093 |
comparison
equal
deleted
inserted
replaced
254:8bca790583c3 | 255:5a30aa9820f3 |
---|---|
608 } | 608 } |
609 } | 609 } |
610 | 610 |
611 public override void setText (String string) { | 611 public override void setText (String string) { |
612 checkWidget(); | 612 checkWidget(); |
613 if (string is null) error (DWT.ERROR_NULL_ARGUMENT); | 613 // DWT extension: allow null for zero length string |
614 //if (string is null) error (DWT.ERROR_NULL_ARGUMENT); | |
614 super.setText (string); | 615 super.setText (string); |
615 char [] chars = fixMnemonic (string); | 616 char [] chars = fixMnemonic (string); |
616 OS.gtk_label_set_text_with_mnemonic (labelHandle, chars.toStringzValidPtr() ); | 617 OS.gtk_label_set_text_with_mnemonic (labelHandle, chars.toStringzValidPtr() ); |
617 if (string.length !is 0) { | 618 if (string.length !is 0) { |
618 OS.gtk_widget_show (labelHandle); | 619 OS.gtk_widget_show (labelHandle); |