shithub: puzzles

Download patch

ref: 64d0a70e13533e257e60ea71045a155a057ac61a
parent: 3d0d54e3b407619fa859bf35b115d473afee63db
author: Simon Tatham <anakin@pobox.com>
date: Sat Oct 3 08:28:06 EDT 2015

GTK 3 prep: use g_timeout_add, not gtk_timeout_add.

--- a/gtk.c
+++ b/gtk.c
@@ -1286,7 +1286,7 @@
     if (!fe)
 	return;			       /* can happen due to --generate */
     if (fe->timer_active)
-        gtk_timeout_remove(fe->timer_id);
+        g_source_remove(fe->timer_id);
     fe->timer_active = FALSE;
 }
 
@@ -1295,7 +1295,7 @@
     if (!fe)
 	return;			       /* can happen due to --generate */
     if (!fe->timer_active) {
-        fe->timer_id = gtk_timeout_add(20, timer_func, fe);
+        fe->timer_id = g_timeout_add(20, timer_func, fe);
 	gettimeofday(&fe->last_time, NULL);
     }
     fe->timer_active = TRUE;