mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 18:05:29 +00:00
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:
parent
20d764bb6f
commit
def947943a
|
@ -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
|
||||
|
|
|
@ -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 ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue