2daedit/source/app.d

32 lines
484 B
D
Raw Normal View History

2014-11-16 22:48:56 +00:00
import std.stdio;
2014-11-18 10:46:07 +00:00
import std.file;
2014-11-16 22:48:56 +00:00
import std.string;
import std.conv : to;
2015-03-12 16:22:53 +00:00
import std.path;
2014-11-16 22:48:56 +00:00
2015-03-12 22:56:27 +00:00
import window;
2014-11-16 22:48:56 +00:00
import gtk.Main;
2015-03-11 23:34:35 +00:00
import gtk.Version;
2014-11-18 10:46:07 +00:00
2014-11-16 22:48:56 +00:00
void main(string[] args)
{
2015-03-11 23:34:35 +00:00
writeln("=================");
writeln("Using GTK version ",Version.getMajorVersion(),".",Version.getMinorVersion(),".",Version.getMicroVersion());
writeln("=================");
2014-11-16 22:48:56 +00:00
Main.init(args);
2014-11-17 14:49:53 +00:00
//Window
2015-03-12 22:56:27 +00:00
auto w = new Window((args.length>=2 && exists(args[1]))? args[1] : null);
2014-11-18 10:46:07 +00:00
Main.run();
}
2014-11-18 14:20:39 +00:00
2014-11-19 15:24:46 +00:00
2014-11-16 22:48:56 +00:00