From 1ae4b80027a97e8fbe553b980dc17ea540000d88 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 12 Sep 2012 09:18:56 -0700 Subject: 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 --- gtk-gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk-gui.c') 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); -- cgit v1.2.3-70-g09d2