From 1b6b93709c45d5cae267e168b0920974413dda2e Mon Sep 17 00:00:00 2001 From: Dustin Falgout Date: Sat, 1 Oct 2016 04:17:54 -0500 Subject: [PATCH] catch SIGINT singals so we can quit properly --- src/greeter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/greeter.c b/src/greeter.c index 60b3305..5a7a8f7 100644 --- a/src/greeter.c +++ b/src/greeter.c @@ -286,7 +286,6 @@ message_received_cb(WebKitUserContentManager *manager, static void quit_cb(void) { - gtk_widget_destroy(GTK_WIDGET(web_view)); gtk_widget_destroy(GTK_WIDGET(window)); gtk_main_quit(); } @@ -329,6 +328,7 @@ main(int argc, char **argv) { gtk_init(&argc, &argv); g_unix_signal_add(SIGTERM, (GSourceFunc) quit_cb, NULL); + g_unix_signal_add(SIGINT, (GSourceFunc) quit_cb, NULL); /* Apply greeter settings from config file */ keyfile = g_key_file_new();