mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-16 11:34:47 +02: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>
|
2008-04-08 Marek Habersack <mhabersack@novell.com>
|
||||||
|
|
||||||
* generator/InterfaceGen.cs: added a check for null obj in the
|
* generator/InterfaceGen.cs: added a check for null obj in the
|
||||||
|
@ -131,11 +131,15 @@ namespace Gtk {
|
|||||||
return gtk_main_iteration_do (blocking);
|
return gtk_main_iteration_do (blocking);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static event EventHandler QuitPrepare;
|
||||||
|
|
||||||
[DllImport("libgtk-win32-2.0-0.dll")]
|
[DllImport("libgtk-win32-2.0-0.dll")]
|
||||||
static extern void gtk_main_quit ();
|
static extern void gtk_main_quit ();
|
||||||
|
|
||||||
public static void Quit ()
|
public static void Quit ()
|
||||||
{
|
{
|
||||||
|
if (QuitPrepare != null)
|
||||||
|
QuitPrepare (null, EventArgs.Empty);
|
||||||
gtk_main_quit ();
|
gtk_main_quit ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user