Mercurial > projects > dwt-mac
diff dwt/widgets/Scrollable.d @ 48:34237ae5156a
Updated Scrollable to 3.514
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sun, 07 Dec 2008 20:16:52 +0100 |
parents | 8615c76f10e4 |
children | c74ba20de292 |
line wrap: on
line diff
--- a/dwt/widgets/Scrollable.d Fri Dec 05 16:23:23 2008 +0100 +++ b/dwt/widgets/Scrollable.d Sun Dec 07 20:16:52 2008 +0100 @@ -128,7 +128,7 @@ NSSize size = NSSize(); size.width = width; size.height = height; - NSBorderType border = hasBorder() ? NSBezelBorder : NSNoBorder; + NSBorderType border = hasBorder() ? OS.NSBezelBorder : OS.NSNoBorder; size = NSScrollView.frameSizeForContentSize(size, (style & DWT.H_SCROLL) !is 0, (style & DWT.V_SCROLL) !is 0, border); width = cast(int)size.width; height = cast(int)size.height; @@ -146,14 +146,14 @@ bar.style = style; bar.display = display; NSScroller scroller; - String actionSelector; + objc.SEL actionSelector; NSRect rect = NSRect(); if ((style & DWT.H_SCROLL) !is 0) { rect.width = 1; } else { rect.height = 1; } - scroller = (NSScroller)new SWTScroller().alloc(); + scroller = cast(NSScroller)(new SWTScroller()).alloc(); scroller.initWithFrame(rect); if ((style & DWT.H_SCROLL) !is 0) { scrollView.setHorizontalScroller(scroller);