2008-04-14 Mike Kestner <mkestner@novell.com>

* gtk/Application.cs: add QuitPrepare event for Gnome.Program usage.

svn path=/trunk/gtk-sharp/; revision=100650
This commit is contained in:
Mike Kestner 2008-04-14 16:22:26 +00:00
parent 20d764bb6f
commit def947943a
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2008-04-14 Mike Kestner <mkestner@novell.com>
* gtk/Application.cs: add QuitPrepare event for Gnome.Program usage.
2008-04-08 Marek Habersack <mhabersack@novell.com>
* generator/InterfaceGen.cs: added a check for null obj in the

View file

@ -131,11 +131,15 @@ namespace Gtk {
return gtk_main_iteration_do (blocking);
}
public static event EventHandler QuitPrepare;
[DllImport("libgtk-win32-2.0-0.dll")]
static extern void gtk_main_quit ();
public static void Quit ()
{
if (QuitPrepare != null)
QuitPrepare (null, EventArgs.Empty);
gtk_main_quit ();
}