diff dwt/widgets/FontDialog.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
line wrap: on
line diff
--- a/dwt/widgets/FontDialog.d	Sun Jun 08 15:11:48 2008 +0200
+++ b/dwt/widgets/FontDialog.d	Sun Jun 15 22:32:20 2008 +0200
@@ -12,8 +12,6 @@
  *******************************************************************************/
 module dwt.widgets.FontDialog;
 
-
-
 import dwt.DWT;
 import dwt.DWTException;
 import dwt.graphics.Font;
@@ -25,7 +23,7 @@
 import dwt.widgets.Shell;
 import dwt.widgets.Display;
 
-static import tango.stdc.stringz;
+import dwt.dwthelper.utils;
 
 /**
  * Instances of this class allow the user to select a font
@@ -143,7 +141,7 @@
 public FontData open () {
     GtkWidget* handle;
     char* titleBytes;
-    titleBytes = tango.stdc.stringz.toStringz(title);
+    titleBytes = toStringz(title);
     Display display = parent !is null ? parent.getDisplay (): Display.getCurrent ();
     handle = OS.gtk_font_selection_dialog_new (titleBytes);
     if (parent !is null) {