From 786450e1dda7c1c7aa400adc1cceec5f782a71ec Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Tue, 9 Apr 2002 19:10:31 +0000 Subject: [PATCH] 2002-04-09 Mike Kestner * sample/ButtonApp.cs : Get it to run on linux. svn path=/trunk/gtk-sharp/; revision=3721 --- ChangeLog | 4 ++++ sample/ButtonApp.cs | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) 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 ();