All pastes #535297 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-06-04 01:46 UTC
rendered paste body
# mcs -pkg:gtk-sharp-2.0 Test.cs

using System;

using Gtk;

public class Test {
        public static void Main() {
                Application.Init();
                StatusIcon si = new StatusIcon();
                si.FromStock = Stock.Close;
                si.Visible = true;

                Window w = new Window("foobar");
                w.DeleteEvent += delegate {
                        Application.Quit();
                };
                w.Show();
                Application.Run();
        }
}