summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-09 15:19:17 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-09 15:23:33 -0800
commitc9a03db480a1363b8b12a2e6ce25c3bb1a80726c (patch)
tree6ae756e22d84a5438cfdaa0c539bef5cd54e80d2 /gtk-gui.c
parenta72597189ddccf4e495b52d964d175477414abb9 (diff)
downloadsubsurface-c9a03db480a1363b8b12a2e6ce25c3bb1a80726c.tar.gz
Consistent Quit behavior on the Mac
We were responding to the wrong Quit signal on MacOS. The one we picked was the one that basically told us "it's too late to stop me, I'm quitting". I switched this to the one asking "should I prevent the app from quitting" and now we can indeed cancel the Quit, regardless which method was used to close the app. Also removes to unused variables. Fixes #22 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 7a4f108ad..e4928e905 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -331,7 +331,7 @@ static void file_open(GtkWidget *w, gpointer data)
gtk_widget_destroy(dialog);
}
-static gboolean on_delete(GtkWidget* w, gpointer data)
+gboolean on_delete(GtkWidget* w, gpointer data)
{
/* Make sure to flush any modified dive data */
update_dive(NULL);