diff dwt/widgets/Shell.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 ba11f2eee658
children c0d810de7093
line wrap: on
line diff
--- a/dwt/widgets/Shell.d	Sun Jun 08 15:11:48 2008 +0200
+++ b/dwt/widgets/Shell.d	Sun Jun 15 22:32:20 2008 +0200
@@ -43,7 +43,6 @@
 import dwt.widgets.Widget;
 
 import Unicode = tango.text.Unicode;
-import tango.stdc.stringz;
 
 /**
  * Instances of this class represent the "windows"
@@ -1927,7 +1926,7 @@
         char * buffer = null;
         if (string !is null && string.length > 0) {
             char [] chars = fixMnemonic (string, false);
-            buffer = tango.stdc.stringz.toStringz( chars );
+            buffer = toStringz( chars );
         }
         OS.gtk_widget_set_tooltip_text (rootWidget, null);
         /*
@@ -1966,7 +1965,7 @@
         char* buffer = null;
         if (string !is null && string.length > 0) {
             char [] chars = fixMnemonic (string, false);
-            buffer = tango.stdc.stringz.toStringz( chars );
+            buffer = toStringz( chars );
         }
         if (tooltipsHandle is null) {
             tooltipsHandle = cast(GtkWidget*)OS.gtk_tooltips_new ();