[retro-gtk] retro-demo: Quit application when core quits
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] retro-demo: Quit application when core quits
- Date: Fri, 16 Apr 2021 20:27:22 +0000 (UTC)
commit d6d09d404697fc08da287e0bb65a13feb7131836
Author: Christopher Obbard <chris obbard collabora com>
Date: Wed Apr 14 10:08:15 2021 +0100
retro-demo: Quit application when core quits
Currently the demo hangs if the core quits. Let's quit the application
when the core quits.
Signed-off-by: Christopher Obbard <chris obbard collabora com>
demos/retro-demo.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/demos/retro-demo.c b/demos/retro-demo.c
index 80c48f0..6e25404 100644
--- a/demos/retro-demo.c
+++ b/demos/retro-demo.c
@@ -103,6 +103,7 @@ retro_demo_activate (GApplication *application)
gtk_widget_show_all (GTK_WIDGET (window));
gtk_application_add_window (GTK_APPLICATION (application),
GTK_WINDOW (window));
+ g_signal_connect_swapped (self->core, "shutdown", G_CALLBACK (gtk_window_close), window);
retro_core_run (self->core);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]