1 // HelloWorld.cs - GTK Window class Test implementation
2 //
3 // Author: Mike Kestner <mkestner@speakeasy.net>
4 //
5 // (c) 2001-2002 Mike Kestner
6 
7 namespace GtkSamples {
8 
9 	using Gtk;
10 	using Gdk;
11 	using System;
12 
13 	public class HelloWorld  {
14 
Main(string[] args)15 		public static int Main (string[] args)
16 		{
17 			Application.Init ();
18 			Gtk.Window win = new Gtk.Window ("Gtk# Hello World");
19 			win.DeleteEvent += new DeleteEventHandler (Window_Delete);
20 			win.ShowAll ();
21 			Application.Run ();
22 			return 0;
23 		}
24 
Window_Delete(object obj, DeleteEventArgs args)25 		static void Window_Delete (object obj, DeleteEventArgs args)
26 		{
27 			Application.Quit ();
28 			args.RetVal = true;
29 		}
30 
31 	}
32 }
33