Mercurial > projects > dwt-samples
changeset 22:40dae5136e84
Porting comment
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 02 Mar 2008 18:46:18 +0100 |
parents | 96a7ecc03d98 |
children | 073094250126 |
files | dwtsnippets/styledtext/Snippet163.d dwtsnippets/text/Snippet258.d |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
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()) {
--- a/dwtsnippets/text/Snippet258.d Sun Mar 02 18:44:22 2008 +0100 +++ b/dwtsnippets/text/Snippet258.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 *******************************************************************************/