- cosmetics
[FaRetSys.git] / Splash.cs
blobe8faf842b384c31b59b40053e010fa462154d333
1 using System;
2 using Gtk;
3 using Glade;
5 namespace Eithne
7 public class Splash
9 [Widget] Window SplashWindow;
10 [Widget] Image IconImage;
11 [Widget] Label Status;
12 [Widget] ProgressBar ProgressWidget;
14 private void ProcessEvents()
16 while(Application.EventsPending())
17 Application.RunIteration();
20 public Splash()
22 Glade.XML gxml = new Glade.XML("Splash.glade", "SplashWindow");
23 gxml.BindFields(this);
25 SplashWindow.IconList = new Gdk.Pixbuf[2] {new Gdk.Pixbuf(null, "dialog-information.png"), new Gdk.Pixbuf(null, "dialog-information-16.png")};
26 IconImage.FromPixbuf = new Gdk.Pixbuf(null, "dialog-information.png");
28 SplashWindow.ShowAll();
29 ProcessEvents();
32 public void Close()
34 SplashWindow.Destroy();
35 ProcessEvents();
38 public string Message
40 set
42 Status.Text = value;
43 ProcessEvents();
47 public float Progress
49 set
51 ProgressWidget.Fraction = value;