diff dwt/widgets/ToolItem.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 844f65808a36
line wrap: on
line diff
--- a/dwt/widgets/ToolItem.d	Mon Dec 01 17:07:00 2008 +0100
+++ b/dwt/widgets/ToolItem.d	Fri Dec 05 16:00:41 2008 +0100
@@ -276,15 +276,15 @@
 void createHandle () {
     if ((style & DWT.SEPARATOR) !is 0) {
         NSBox widget = cast(NSBox)new SWTBox().alloc();
-        widget.initWithFrame(new NSRect());
+        widget.initWithFrame(NSRect());
         widget.setBoxType(OS.NSBoxSeparator);
         view = widget;
     } else {
         NSView widget = cast(NSView)new SWTView().alloc();
-        widget.initWithFrame(new NSRect());
+        widget.initWithFrame(NSRect());
         parent.contentView().addSubview(widget);
         button = cast(NSButton)new SWTButton().alloc();
-        button.initWithFrame(new NSRect());
+        button.initWithFrame(NSRect());
         button.setBordered(false);
         button.setAction(OS.sel_sendSelection);
         button.setTarget(button);
@@ -361,7 +361,7 @@
             NSGraphicsContext context = NSGraphicsContext.currentContext();
             context.saveGraphicsState();
             NSBezierPath path = NSBezierPath.bezierPath();
-            NSPoint pt = new NSPoint();
+            NSPoint pt = NSPoint();
             path.moveToPoint(pt);
             pt.x += ARROW_WIDTH;
             path.lineToPoint(pt);
@@ -665,7 +665,7 @@
 }
 
 void setBounds (int x, int y, int width, int height) {
-    NSRect rect = new NSRect();
+    NSRect rect = NSRect();
     rect.x = x;
     rect.y = y;
     rect.width = width;