mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Move the deactivate_timer() call from window_destroy() into
destroy(). I'm not sure how it cured the crash-on-quit bug, since it was in completely the wrong place! [originally from svn r4533]
This commit is contained in:
4
gtk.c
4
gtk.c
@ -231,6 +231,8 @@ void end_draw(frontend *fe)
|
||||
|
||||
static void destroy(GtkWidget *widget, gpointer data)
|
||||
{
|
||||
frontend *fe = (frontend *)data;
|
||||
deactivate_timer(fe);
|
||||
gtk_main_quit();
|
||||
}
|
||||
|
||||
@ -415,8 +417,6 @@ void activate_timer(frontend *fe)
|
||||
|
||||
static void window_destroy(GtkWidget *widget, gpointer data)
|
||||
{
|
||||
frontend *fe = (frontend *)data;
|
||||
deactivate_timer(fe);
|
||||
gtk_main_quit();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user