Mercurial > projects > dwt-linux
diff dwt/program/Program.d @ 356:8ebacc5c07dc
Fixes for TANGOSVN r4235 -- still some warnings but builds
author | John Reimer <terminal.node@gmail.com> |
---|---|
date | Sun, 04 Jan 2009 02:47:54 -0500 |
parents | f1bb3949939b |
children | 4bffbf81e2d6 |
line wrap: on
line diff
--- a/dwt/program/Program.d Sun Dec 14 02:31:38 2008 -0500 +++ b/dwt/program/Program.d Sun Jan 04 02:47:54 2009 -0500 @@ -28,7 +28,7 @@ import tango.core.Array; import tango.text.convert.Format; version (TANGOSVN) { -import tango.io.device.FileConduit; +import tango.io.device.File; } else { import tango.io.FileConduit; } @@ -598,7 +598,10 @@ + This is a temporary workaround until SWT will get the real implementation. +/ static String[][ String ] gnome24_getMimeInfo() { - scope file = new FileConduit ("/usr/share/mime/globs"); + version(TANGOSVN) + scope file = new tango.io.device.File.File ("/usr/share/mime/globs"); + else + scope file = new FileConduit ("/usr/share/mime/globs"); scope it = new LineIterator!(char)(file); // process file one line at a time String[][ String ] mimeInfo;