From d55cb158a1cc7317e1b8c39d4d59d2ff6d462471 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin <coolreader.org@gmail.com> Date: Wed, 25 Mar 2015 11:10:39 +0300 Subject: [PATCH] fix gl3n dependency --- dub.json | 2 +- examples/helloworld/src/helloworld.d | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/dub.json b/dub.json index cd6dc1cc..879869de 100644 --- a/dub.json +++ b/dub.json @@ -39,7 +39,7 @@ "dlib": "~master", "derelict-ft": ">=1.0.0", "derelict-sdl2": ">=1.9.1", - "gl3n": "==1.0.0" + "gl3n": "~>1.0.1" }, "-ddoxFilterArgs": ["--unittest-examples", "--min-protection=Protected", "--ex", "win32.", "--ex", "src.dlangui"], diff --git a/examples/helloworld/src/helloworld.d b/examples/helloworld/src/helloworld.d index 6291309a..97e3707e 100644 --- a/examples/helloworld/src/helloworld.d +++ b/examples/helloworld/src/helloworld.d @@ -1,19 +1,16 @@ module app; import dlangui; -import std.stdio; -import std.conv; - mixin APP_ENTRY_POINT; /// entry point for dlangui based application extern (C) int UIAppMain(string[] args) { // create window - Window window = Platform.instance.createWindow("My Window", null); + Window window = Platform.instance.createWindow("DlangUI example - HelloWorld", null); // create some widget to show in window - window.mainWidget = (new Button()).text("Hello world"d).margins(Rect(20,20,20,20)); + window.mainWidget = (new Button()).text("Hello, world!"d).margins(Rect(20,20,20,20)); // show window window.show();