mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 00:13:20 +02:00
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
@ -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>
|
2002-08-09 Kristian Rietveld <kris@gtk.org>
|
||||||
|
|
||||||
* parser/Gtk.metadata: add a bunch of out arg rules, add
|
* parser/Gtk.metadata: add a bunch of out arg rules, add
|
||||||
|
@ -82,7 +82,7 @@ namespace GtkSamples {
|
|||||||
Application.Init ();
|
Application.Init ();
|
||||||
|
|
||||||
Window win = new Window ("TreeView demo");
|
Window win = new Window ("TreeView demo");
|
||||||
win.DeleteEvent += new EventHandler (DeleteCB);
|
win.DeleteEvent += new DeleteEventHandler (DeleteCB);
|
||||||
win.DefaultSize = new Size (640,480);
|
win.DefaultSize = new Size (640,480);
|
||||||
|
|
||||||
ScrolledWindow sw = new ScrolledWindow ();
|
ScrolledWindow sw = new ScrolledWindow ();
|
||||||
@ -114,11 +114,10 @@ namespace GtkSamples {
|
|||||||
Application.Run ();
|
Application.Run ();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void DeleteCB (Object o, EventArgs args)
|
private static void DeleteCB (Object o, DeleteEventArgs args)
|
||||||
{
|
{
|
||||||
SignalArgs sa = (SignalArgs) args;
|
|
||||||
Application.Quit ();
|
Application.Quit ();
|
||||||
sa.RetVal = true;
|
args.RetVal = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user