Mercurial > projects > dwt-samples
diff dwtsnippets/styledtext/Snippet163.d @ 22:40dae5136e84
Porting comment
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 02 Mar 2008 18:46:18 +0100 |
parents | 7b7a54b047e1 |
children |
line wrap: on
line diff
--- a/dwtsnippets/styledtext/Snippet163.d Sun Mar 02 18:44:22 2008 +0100 +++ b/dwtsnippets/styledtext/Snippet163.d Sun Mar 02 18:46:18 2008 +0100 @@ -7,7 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation - * D Port: + * Port to the D programming language: * Jesse Phillips <Jesse.K.Phillips+D> gmail.com *******************************************************************************/ @@ -26,6 +26,10 @@ import dwt.widgets.Display; import dwt.widgets.Shell; +version(JIVE){ + import jive.stacktrace; +} + void main() { auto display = new Display(); auto shell = new Shell(display); @@ -50,7 +54,7 @@ style3.length = 13; style3.background = display.getSystemColor(DWT.COLOR_BLUE); text.setStyleRange(style3); - + shell.pack(); shell.open(); while (!shell.isDisposed()) {