diff options
author | waker <wakeroid@gmail.com> | 2009-08-13 22:38:35 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-08-13 22:38:35 +0200 |
commit | 06c9fe1c21c7de0c9985dff30891d6cf64ed46b8 (patch) | |
tree | 078cd367e67f22e97d276466120d058049dfb839 /callbacks.c | |
parent | 2ee926470f70b6d5cf3566683aae8376b5aa7010 (diff) |
proper exiting without crashing
Diffstat (limited to 'callbacks.c')
-rw-r--r-- | callbacks.c | 11 |
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; +} + |