summaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 15230ba..7244f1e 100644
--- a/src/window.c
+++ b/src/window.c
@@ -28,6 +28,12 @@
#include "tab.h"
static void
+destroy_cb(GtkWidget __attribute__((unused)) *widget, MqWindow *window)
+{
+ mq_application_delete_window(window->application, window);
+}
+
+static void
set_title(MqWindow *window, const gchar *title)
{
gchar *window_title;
@@ -73,7 +79,7 @@ mq_window_new(MqApplication *application, const gchar **uris)
window->window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_default_size(GTK_WINDOW(window->window), 1024, 768);
g_signal_connect(window->window, "destroy",
- G_CALLBACK(mq_application_delete_window), application);
+ G_CALLBACK(destroy_cb), window);
window->notebook = gtk_notebook_new();
gtk_notebook_set_scrollable(GTK_NOTEBOOK(window->notebook), TRUE);