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>
This commit is contained in:
Dirk Hohndel 2012-09-12 09:18:56 -07:00
parent 1afe36840d
commit 1ae4b80027
3 changed files with 11 additions and 1 deletions

View file

@ -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);