Mercurial > projects > dwt-mac
diff dwt/widgets/Spinner.d @ 46:cfa563df4fdd
Updated Widget and Display to 3.514
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Fri, 05 Dec 2008 16:00:41 +0100 |
parents | d8635bb48c7c |
children | 990305995bc6 |
line wrap: on
line diff
--- a/dwt/widgets/Spinner.d Mon Dec 01 17:07:00 2008 +0100 +++ b/dwt/widgets/Spinner.d Fri Dec 05 16:00:41 2008 +0100 @@ -272,15 +272,15 @@ void createHandle () { NSView widget = cast(NSView)new SWTView().alloc(); - widget.initWithFrame(new NSRect()); + widget.initWithFrame(NSRect()); // widget.setDrawsBackground(false); NSStepper buttonWidget = cast(NSStepper)new SWTStepper().alloc(); - buttonWidget.initWithFrame(new NSRect()); + buttonWidget.initWithFrame(NSRect()); buttonWidget.setValueWraps((style & DWT.WRAP) !is 0); buttonWidget.setTarget(buttonWidget); buttonWidget.setAction(OS.sel_sendSelection); NSTextField textWidget = cast(NSTextField)new SWTTextField().alloc(); - textWidget.initWithFrame(new NSRect()); + textWidget.initWithFrame(NSRect()); // textWidget.setTarget(widget); textWidget.setEditable((style & DWT.READ_ONLY) is 0); textFormatter = new NSNumberFormatter();