summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-09-12 09:18:56 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-09-12 09:18:56 -0700
commit1ae4b80027a97e8fbe553b980dc17ea540000d88 (patch)
treebaeff455c1161ebd295c0484344a409264f8d1e3 /gtk-gui.c
parent1afe36840ddbc2d139c1f7e2b3607aecc88d9890 (diff)
downloadsubsurface-1ae4b80027a97e8fbe553b980dc17ea540000d88.tar.gz
Make sure Subsurface receives Quit / Command-Q callback on Mac
As usual, things work slightly different on Mac. Quartz delivers some (but not all) accelerator notifications differently. Command-Q and Subsurface->Quit now work on Mac as well. 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 e520d9b75..cd7ebe5cc 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -355,7 +355,7 @@ static void on_destroy(GtkWidget* w, gpointer data)
gtk_main_quit();
}
-static void quit(GtkWidget *w, gpointer data)
+void quit(GtkWidget *w, gpointer data)
{
/* Make sure to flush any modified dive data */
update_dive(NULL);