summaryrefslogtreecommitdiff
path: root/callbacks.c
diff options
context:
space:
mode:
Diffstat (limited to 'callbacks.c')
-rw-r--r--callbacks.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/callbacks.c b/callbacks.c
index 405f02ce..a543daf5 100644
--- a/callbacks.c
+++ b/callbacks.c
@@ -23,6 +23,7 @@
#include <math.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
#include "callbacks.h"
#include "interface.h"
@@ -1047,3 +1048,13 @@ on_volumebar_button_release_event (GtkWidget *widget,
return FALSE;
}
+
+gboolean
+on_mainwin_delete_event (GtkWidget *widget,
+ GdkEvent *event,
+ gpointer user_data)
+{
+ messagepump_push (M_TERMINATE, 0, 0, 0);
+ return TRUE;
+}
+