diff --git a/ChangeLog b/ChangeLog index 6b8023946..ff6ed05df 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-04-14 Mike Kestner + + * gtk/Application.cs: add QuitPrepare event for Gnome.Program usage. + 2008-04-08 Marek Habersack * generator/InterfaceGen.cs: added a check for null obj in the diff --git a/gtk/Application.cs b/gtk/Application.cs index 05673afb6..ed3b05e33 100755 --- a/gtk/Application.cs +++ b/gtk/Application.cs @@ -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 (); }