Mercurial > projects > dwt-mac
diff dwt/widgets/TrayItem.d @ 36:db5a898b2119
Fixed a lot of compile errors
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Tue, 07 Oct 2008 12:56:18 +0200 |
parents | e831403a80a9 |
children | 642f460a0908 |
line wrap: on
line diff
--- a/dwt/widgets/TrayItem.d Sun Sep 14 23:32:29 2008 +0200 +++ b/dwt/widgets/TrayItem.d Tue Oct 07 12:56:18 2008 +0200 @@ -10,8 +10,6 @@ *******************************************************************************/ module dwt.widgets.TrayItem; -import dwt.dwthelper.utils; - import dwt.DWT; import dwt.DWTException; @@ -30,6 +28,13 @@ import dwt.internal.cocoa.OS; import dwt.internal.cocoa.SWTImageView; +import dwt.dwthelper.utils; + +import dwt.widgets.Item; +import dwt.widgets.ToolTip; +import dwt.widgets.Tray; +import dwt.widgets.TypedListener; + /** * Instances of this class represent icons that can be placed on the * system tray or task bar status area. @@ -164,7 +169,7 @@ item.retain(); item.setHighlightMode(true); NSRect rect = new NSRect(); - view = cast(NSImageView)new SWTImageView().alloc(); + view = cast(NSImageView)(new SWTImageView()).alloc(); if (view is null) error (DWT.ERROR_NO_HANDLES); view.initWithFrame(rect); item.setView(view);