2002-08-06 Duncan Mak <duncan@ximian.com>

* sample/CanvasExample.cs: Removed extra methods.

svn path=/trunk/gtk-sharp/; revision=6458
This commit is contained in:
Duncan Mak 2002-08-06 05:42:57 +00:00
parent 610efe83b9
commit eaca3f82e0

View file

@ -27,9 +27,9 @@ namespace GtkSamples {
win.Add (vbox); win.Add (vbox);
vbox.PackStart (new Label ("Drag - move object.\n" + vbox.PackStart (new Label ("Drag - move object.\n" +
"Double click - change color\n" + "Double click - change color\n" +
"Right click - delete object"), "Right click - delete object"),
false, false, 0); false, false, 0);
canvas = new Canvas (); canvas = new Canvas ();
canvas.SetSizeRequest (width, height); canvas.SetSizeRequest (width, height);
@ -156,18 +156,6 @@ namespace GtkSamples {
sa.RetVal = true; sa.RetVal = true;
} }
void Quit (object obj, EventArgs args)
{
Application.Quit ();
}
void Window_Delete (object obj, DeleteEventArgs args)
{
SignalArgs sa = (SignalArgs) args;
Application.Quit ();
sa.RetVal = true;
}
public static int Main (string[] args) public static int Main (string[] args)
{ {
Application.Init (); Application.Init ();