summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-22 16:15:35 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-22 16:15:35 (EDT)
commitcd666da9fb700189c7b4596599e62e970867bdc6 (patch)
tree1e7b2c37c17730ba75b8024c34dd82b9338d070d /src
parent8645481144bdcf96487a29d67f34f8d703b86be3 (diff)
downloadmarquee-cd666da9fb700189c7b4596599e62e970867bdc6.zip
marquee-cd666da9fb700189c7b4596599e62e970867bdc6.tar.gz
marquee-cd666da9fb700189c7b4596599e62e970867bdc6.tar.bz2
MqWindow: Delete window from application on close
Don't quit on window close.
Diffstat (limited to 'src')
-rw-r--r--src/window.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index d2cf6cb..8f0d5c6 100644
--- a/src/window.c
+++ b/src/window.c
@@ -69,9 +69,8 @@ mq_window_new(MqApplication *application, gchar **uris)
window->window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_default_size(GTK_WINDOW(window->window), 1024, 768);
- /* TODO: Don't quit on window close */
g_signal_connect(window->window, "destroy",
- G_CALLBACK(gtk_main_quit), NULL);
+ G_CALLBACK(mq_application_delete_window), application);
window->notebook = gtk_notebook_new();
gtk_notebook_set_scrollable(GTK_NOTEBOOK(window->notebook), TRUE);