mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-21 13:10:19 +00:00
osx: Properly handle quitting
This commit is contained in:
@@ -300,11 +300,21 @@ fe_init (void)
|
|||||||
input_style = create_input_style (gtk_style_new ());
|
input_style = create_input_style (gtk_style_new ());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_GTK_MAC
|
||||||
|
static void
|
||||||
|
gtkosx_application_terminate (GtkosxApplication *app, gpointer userdata)
|
||||||
|
{
|
||||||
|
hexchat_exit();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
fe_main (void)
|
fe_main (void)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_GTK_MAC
|
#ifdef HAVE_GTK_MAC
|
||||||
gtkosx_application_ready(osx_app);
|
gtkosx_application_ready(osx_app);
|
||||||
|
g_signal_connect (G_OBJECT(osx_app), "NSApplicationWillTerminate",
|
||||||
|
G_CALLBACK(gtkosx_application_terminate), NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
gtk_main ();
|
gtk_main ();
|
||||||
|
|||||||
Reference in New Issue
Block a user