From 540ad3d357ea643f3b4e4f6c217bf2a0b2bd7294 Mon Sep 17 00:00:00 2001 From: riccardom Date: Thu, 28 Jan 2010 16:34:56 +0000 Subject: [PATCH] Use DoQuit() when exiting. --- desmume/src/gtk/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/gtk/main.cpp b/desmume/src/gtk/main.cpp index 754c80be4..dd2530645 100644 --- a/desmume/src/gtk/main.cpp +++ b/desmume/src/gtk/main.cpp @@ -1951,7 +1951,7 @@ static void desmume_gtk_menu_tools (GtkActionGroup *ag) #ifdef HAVE_TIMEOUT static gboolean timeout_exit_cb(gpointer data) { - gtk_main_quit(); + DoQuit(); INFO("Quit after %d seconds timeout\n", GPOINTER_TO_INT(data)); return FALSE; @@ -2089,7 +2089,7 @@ common_gtk_main( struct configured_features *my_config) gtk_window_set_resizable(GTK_WINDOW (pWindow), TRUE); gtk_window_set_icon(GTK_WINDOW (pWindow), gdk_pixbuf_new_from_xpm_data(DeSmuME_xpm)); - g_signal_connect(G_OBJECT(pWindow), "destroy", G_CALLBACK(gtk_main_quit), NULL); + g_signal_connect(G_OBJECT(pWindow), "destroy", G_CALLBACK(DoQuit), NULL); g_signal_connect(G_OBJECT(pWindow), "key_press_event", G_CALLBACK(Key_Press), NULL); g_signal_connect(G_OBJECT(pWindow), "key_release_event", G_CALLBACK(Key_Release), NULL);