# HG changeset patch # User Jacob Carlborg # Date 1220818199 -7200 # Node ID fdbd69a5f101e597ea0250fb272a65b4c2a250f7 # Parent 453387bb0706c7fa276c46b580a260a68f6e667c Ported dwt.widgets.Decorations diff -r 453387bb0706 -r fdbd69a5f101 dwt/widgets/Decorations.d --- a/dwt/widgets/Decorations.d Sun Sep 07 18:22:28 2008 +0200 +++ b/dwt/widgets/Decorations.d Sun Sep 07 22:09:59 2008 +0200 @@ -7,17 +7,26 @@ * * Contributors: * IBM Corporation - initial API and implementation + * + * Port to the D programming language: + * Jacob Carlborg *******************************************************************************/ module dwt.widgets.Decorations; -import dwt.dwthelper.utils; - import dwt.DWT; import dwt.DWTException; import dwt.graphics.Image; import dwt.graphics.ImageData; +import dwt.dwthelper.utils; +import dwt.dwthelper.System; +import dwt.widgets.Button; +import dwt.widgets.Composite; +import dwt.widgets.Control; +import dwt.widgets.Display; +import dwt.widgets.Menu; + /** * Instances of this class provide the appearance and * behavior of Shells, but are not top @@ -640,10 +649,10 @@ *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • * */ -public void setText (String string) { +public void setText (String str) { checkWidget(); - if (string is null) error (DWT.ERROR_NULL_ARGUMENT); - text = string; + //if (str is null) error (DWT.ERROR_NULL_ARGUMENT); + text = str; } void sort (Image [] images) {