/* CONSTRUCTOR */ public Window() : base("Gnome orbiter") { silver = new GtkSilver(320, 420); silver.Attach(new Canvas()); fetcher = new PlanetFetcher(); fetcher.FetchDone += OnFetchDone; fetcher.Start(); silver.Canvas.Children.Add(new Background(silver)); throbber = new Throbber(silver); silver.Canvas.Children.Add(throbber); CreateButtons(); Add(silver); RectangleGeometry r = new RectangleGeometry(); r.Rect = new Rect(10.0, 10.0, 300.0, 400.0); silver.Canvas.Clip = r; silver.SetSizeRequest(320, 420); }
/* CONSTRUCTOR */ public Window () : base ("Gnome orbiter") { silver = new GtkSilver (320, 420); silver.Attach (new Canvas ()); fetcher = new PlanetFetcher (); fetcher.FetchDone += OnFetchDone; fetcher.Start (); silver.Canvas.Children.Add (new Background (silver)); throbber = new Throbber (silver); silver.Canvas.Children.Add (throbber); CreateButtons (); Add (silver); RectangleGeometry r = new RectangleGeometry (); r.Rect = new Rect (10.0, 10.0, 300.0, 400.0); silver.Canvas.Clip = r; silver.SetSizeRequest (320, 420); }