diff --git a/ChangeLog b/ChangeLog index eadd03be5..486c78aab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-04-09 Mike Kestner + + * sample/ButtonApp.cs : Get it to run on linux. + 2002-04-04 Mike Kestner * generator/CallbackGen.cs : Unstubify. diff --git a/sample/ButtonApp.cs b/sample/ButtonApp.cs index 5d0a7f306..0f4c2f930 100755 --- a/sample/ButtonApp.cs +++ b/sample/ButtonApp.cs @@ -2,24 +2,25 @@ // // Author: Mike Kestner // -// (c) 2001 Mike Kestner +// (c) 2001-2002 Mike Kestner namespace GtkSamples { using Gtk; using GtkSharp; using System; - using System.Drawing; public class ButtonApp { public static int Main (string[] args) { - Application.Init (ref args); + Application.Init (); Window win = new Window (WindowType.Toplevel); win.Title = "Button Tester"; + win.DefaultHeight = 120; + win.DefaultWidth = 160; win.DeleteEvent += new EventHandler (Window_Delete); - Button btn = new Button (); + Button btn = new Button ("Click Me"); btn.Clicked += new EventHandler (btn_click); win.EmitAdd (btn); win.ShowAll ();