Merge branch 'master' into new.io.matching
[FaRetSys.git] / Splash.cs
blobabd5ab6d493533d0952dab609e2b41ff93cbf94d
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;
13 private void ProcessEvents()
15 while(Application.EventsPending())
16 Application.RunIteration();
19 public Splash()
21 Glade.XML gxml = new Glade.XML("Splash.glade", "SplashWindow");
22 gxml.BindFields(this);
24 SplashWindow.IconList = new Gdk.Pixbuf[2] {new Gdk.Pixbuf(null, "dialog-information.png"), new Gdk.Pixbuf(null, "dialog-information-16.png")};
25 IconImage.FromPixbuf = new Gdk.Pixbuf(null, "dialog-information.png");
27 SplashWindow.ShowAll();
28 ProcessEvents();
31 public void Close()
33 SplashWindow.Destroy();
34 ProcessEvents();
37 public string Message
39 set
41 Status.Text = value;
42 ProcessEvents();