Mercurial > projects > dwt-mac
diff dwt/widgets/Link.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 | 3607217555f2 |
line wrap: on
line diff
--- a/dwt/widgets/Link.d Mon Dec 01 17:07:00 2008 +0100 +++ b/dwt/widgets/Link.d Fri Dec 05 16:00:41 2008 +0100 @@ -137,7 +137,7 @@ int width, height; //TODO wrapping, wHint int borderStyle = hasBorder() ? OS.NSBezelBorder : OS.NSNoBorder; - NSSize borderSize = NSScrollView.frameSizeForContentSize(new NSSize(), false, false, borderStyle); + NSSize borderSize = NSScrollView.frameSizeForContentSize(NSSize(), false, false, borderStyle); NSTextView widget = cast(NSTextView)view; NSSize size = widget.textStorage().size(); width = cast(int)(size.width + borderSize.width); @@ -166,7 +166,7 @@ scrollWidget.setBorderType(hasBorder() ? OS.NSBezelBorder : OS.NSNoBorder); NSTextView widget = cast(NSTextView)new SWTTextView().alloc(); - widget.initWithFrame(new NSRect()); + widget.initWithFrame(NSRect()); widget.setEditable(false); widget.setDrawsBackground(false); widget.setDelegate(widget); @@ -430,7 +430,7 @@ NSTextView widget = cast(NSTextView)view; widget.setString(NSString.stringWith(parse(string))); NSTextStorage textStorage = widget.textStorage(); - NSRange range = new NSRange(); + NSRange range = NSRange(); for (int i = 0; i < offsets.length; i++) { range.location = offsets[i].x; range.length = offsets[i].y - offsets[i].x + 1;