From def947943a49c01f03d85b4700c76e13b8e80bef Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Mon, 14 Apr 2008 16:22:26 +0000 Subject: [PATCH] 2008-04-14 Mike Kestner * gtk/Application.cs: add QuitPrepare event for Gnome.Program usage. svn path=/trunk/gtk-sharp/; revision=100650 --- ChangeLog | 4 ++++ gtk/Application.cs | 4 ++++ 2 files changed, 8 insertions(+) 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 (); }