diff dwt/widgets/Tray.d @ 37:642f460a0908

Fixed a lot of compile errors, a "hello world" app compiles now
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Fri, 10 Oct 2008 12:29:48 +0200
parents 5b53d338c709
children d8635bb48c7c
line wrap: on
line diff
--- a/dwt/widgets/Tray.d	Tue Oct 07 12:56:18 2008 +0200
+++ b/dwt/widgets/Tray.d	Fri Oct 10 12:29:48 2008 +0200
@@ -42,7 +42,7 @@
  */
 public class Tray : Widget {
     int itemCount;
-    TrayItem [] items = new TrayItem [4];
+    TrayItem [] items;
 
 this (Display display, int style) {
     if (display is null) display = Display.getCurrent ();
@@ -51,6 +51,7 @@
         error (DWT.ERROR_THREAD_INVALID_ACCESS);
     }
     this.display = display;
+    items = new TrayItem [4];
 }
     
 void createItem (TrayItem item, int index) {