diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-09-01 11:46:51 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-09-01 11:46:51 +0000 |
| commit | 1dc9cf5811c319e46d01dbb0bf242d806d0a799c (patch) | |
| tree | a09c0ce17f9d91e3506a20bf5e90f0cfccec3fc6 | |
| parent | a7b1697b1cd450589141b88862142dafc72e0b74 (diff) | |
| download | puzzles-1dc9cf5811c319e46d01dbb0bf242d806d0a799c.zip puzzles-1dc9cf5811c319e46d01dbb0bf242d806d0a799c.tar.gz puzzles-1dc9cf5811c319e46d01dbb0bf242d806d0a799c.tar.bz2 puzzles-1dc9cf5811c319e46d01dbb0bf242d806d0a799c.tar.xz | |
Deactivate the timer when we destroy the puzzle window. Otherwise it
might run again in mid-shutdown and cause chaos, if you hit `q' in
the middle of an animated sequence such as the Net finishing flash.
[originally from svn r4525]
| -rw-r--r-- | gtk.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -415,6 +415,8 @@ void activate_timer(frontend *fe) static void window_destroy(GtkWidget *widget, gpointer data) { + frontend *fe = (frontend *)data; + deactivate_timer(fe); gtk_main_quit(); } |