Mercurial > projects > dynamin
diff dynamin/gui/file_dialog.d @ 106:acdbb30fee7e
Port to D2.
Most of the effort was dealing with immutable and const.
author | Jordan Miner <jminer7@gmail.com> |
---|---|
date | Mon, 17 Dec 2012 23:41:50 -0600 |
parents | 73060bc3f004 |
children |
line wrap: on
line diff
--- a/dynamin/gui/file_dialog.d Sat Nov 24 10:21:50 2012 -0600 +++ b/dynamin/gui/file_dialog.d Mon Dec 17 23:41:50 2012 -0600 @@ -18,7 +18,7 @@ string name; string[] extensions; // ignored for now - bool delegate(string fileName) shouldShow; + bool delegate(cstring fileName) shouldShow; } /** @@ -77,7 +77,7 @@ * returns true for. * BUG: not implemented */ - void addFilter(string name, string ext, bool delegate(string fileName) shouldShow) { + void addFilter(string name, string ext, bool delegate(cstring fileName) shouldShow) { // TODO: throw new Exception("addFilter(string, string, delegate) not implemented"); FileDialogFilter filter;