2002-08-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* sample/GnomeHelloWorld.cs: use DeleteEventHandler. svn path=/trunk/gtk-sharp/; revision=6480
This commit is contained in:
parent
0479b3c950
commit
4750a00588
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2002-08-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
|
||||||
|
|
||||||
|
* sample/GnomeHelloWorld.cs: use DeleteEventHandler.
|
||||||
|
|
||||||
2002-08-07 Duncan Mak <duncan@ximian.com>
|
2002-08-07 Duncan Mak <duncan@ximian.com>
|
||||||
|
|
||||||
* sample/Fifteen.cs: Added new canvas example.
|
* sample/Fifteen.cs: Added new canvas example.
|
||||||
|
|
|
@ -92,7 +92,7 @@ namespace GtkSamples {
|
||||||
public Gtk.Window CreateWindow ()
|
public Gtk.Window CreateWindow ()
|
||||||
{
|
{
|
||||||
Gnome.App win = new Gnome.App ("gnome-hello-world", "Gnome# Hello World");
|
Gnome.App win = new Gnome.App ("gnome-hello-world", "Gnome# Hello World");
|
||||||
win.DeleteEvent += new EventHandler (Window_Delete);
|
win.DeleteEvent += new DeleteEventHandler (Window_Delete);
|
||||||
|
|
||||||
win.Menus = CreateMenus ();
|
win.Menus = CreateMenus ();
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ namespace GtkSamples {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Window_Delete (object obj, EventArgs args)
|
static void Window_Delete (object obj, DeleteEventArgs args)
|
||||||
{
|
{
|
||||||
SignalArgs sa = (SignalArgs) args;
|
SignalArgs sa = (SignalArgs) args;
|
||||||
Application.Quit ();
|
Application.Quit ();
|
||||||
|
|
Loading…
Reference in a new issue