# HG changeset patch # User Jacob Carlborg # Date 1228677412 -3600 # Node ID 34237ae5156a866a2663d40aab629a475251a1c8 # Parent 8615c76f10e436558b7d5c86f5619091e57405e6 Updated Scrollable to 3.514 diff -r 8615c76f10e4 -r 34237ae5156a dwt/internal/cocoa/NSRect.d --- a/dwt/internal/cocoa/NSRect.d Fri Dec 05 16:23:23 2008 +0100 +++ b/dwt/internal/cocoa/NSRect.d Sun Dec 07 20:16:52 2008 +0100 @@ -56,7 +56,7 @@ return size.height; } - CGFloat width (CGFloat height) + CGFloat height (CGFloat height) { return size.height = height; } diff -r 8615c76f10e4 -r 34237ae5156a dwt/internal/cocoa/OS.d --- a/dwt/internal/cocoa/OS.d Fri Dec 05 16:23:23 2008 +0100 +++ b/dwt/internal/cocoa/OS.d Sun Dec 07 20:16:52 2008 +0100 @@ -33,6 +33,7 @@ import dwt.internal.cocoa.NSSize; import dwt.internal.cocoa.NSString; import dwt.internal.cocoa.NSText; +import dwt.internal.cocoa.NSView; import Cocoa = dwt.internal.objc.cocoa.Cocoa; import objc = dwt.internal.objc.runtime; @@ -2599,7 +2600,7 @@ public static const int NSBelowBottom = 6; public static const int NSBelowTop = 3; public static const int NSBevelLineJoinStyle = 2; -public static const int NSBezelBorder = 2; +alias NSBorderType.NSBezelBorder NSBezelBorder; public static const int NSBlueControlTint = 1; public static const int NSBoldFontMask = 2; public static const int NSBorderlessWindowMask = 0; @@ -3011,7 +3012,7 @@ public static const int NSNewlineCharacter = 10; public static const int NSNextFunctionKey = 63296; public static const int NSNextStepInterfaceStyle = 1; -public static const int NSNoBorder = 0; +alias NSBorderType.NSNoBorder NSNoBorder; public static const int NSNoCellMask = 0; public static const int NSNoFontChangeAction = 0; public static const int NSNoImage = 0; diff -r 8615c76f10e4 -r 34237ae5156a dwt/widgets/ScrollBar.d --- a/dwt/widgets/ScrollBar.d Fri Dec 05 16:23:23 2008 +0100 +++ b/dwt/widgets/ScrollBar.d Sun Dec 07 20:16:52 2008 +0100 @@ -103,7 +103,7 @@ int increment = 1; int pageIncrement = 10; id target; - String actionSelector;; + objc.SEL actionSelector; this () { /* Do nothing */ diff -r 8615c76f10e4 -r 34237ae5156a dwt/widgets/Scrollable.d --- 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);