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:
parent
610efe83b9
commit
eaca3f82e0
1 changed files with 3 additions and 15 deletions
|
@ -27,9 +27,9 @@ namespace GtkSamples {
|
|||
win.Add (vbox);
|
||||
|
||||
vbox.PackStart (new Label ("Drag - move object.\n" +
|
||||
"Double click - change color\n" +
|
||||
"Right click - delete object"),
|
||||
false, false, 0);
|
||||
"Double click - change color\n" +
|
||||
"Right click - delete object"),
|
||||
false, false, 0);
|
||||
|
||||
canvas = new Canvas ();
|
||||
canvas.SetSizeRequest (width, height);
|
||||
|
@ -156,18 +156,6 @@ namespace GtkSamples {
|
|||
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)
|
||||
{
|
||||
Application.Init ();
|
||||
|
|
Loading…
Reference in a new issue