2002-08-10 Rachel Hestilow <hestilow@ximian.com>
* sample/TreeViewDemo.cs (Main, DeleteCB): Update to use correct event handler. svn path=/trunk/gtk-sharp/; revision=6578
This commit is contained in:
parent
db4c8f1c2d
commit
fce41ef511
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-08-10 Rachel Hestilow <hestilow@ximian.com>
|
||||
|
||||
* sample/TreeViewDemo.cs (Main, DeleteCB): Update to use correct
|
||||
event handler.
|
||||
|
||||
2002-08-09 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* parser/Gtk.metadata: add a bunch of out arg rules, add
|
||||
|
|
|
@ -82,7 +82,7 @@ namespace GtkSamples {
|
|||
Application.Init ();
|
||||
|
||||
Window win = new Window ("TreeView demo");
|
||||
win.DeleteEvent += new EventHandler (DeleteCB);
|
||||
win.DeleteEvent += new DeleteEventHandler (DeleteCB);
|
||||
win.DefaultSize = new Size (640,480);
|
||||
|
||||
ScrolledWindow sw = new ScrolledWindow ();
|
||||
|
@ -114,11 +114,10 @@ namespace GtkSamples {
|
|||
Application.Run ();
|
||||
}
|
||||
|
||||
private static void DeleteCB (Object o, EventArgs args)
|
||||
private static void DeleteCB (Object o, DeleteEventArgs args)
|
||||
{
|
||||
SignalArgs sa = (SignalArgs) args;
|
||||
Application.Quit ();
|
||||
sa.RetVal = true;
|
||||
args.RetVal = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue