From b1b8da3d432efc06faf6e662b9d6d57e6f886444 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Wed, 30 Oct 2019 22:18:12 +0100 Subject: Simplify timeouts (remove C code; use pushLc ABC instruction instead) --- src/clean_gtk_support.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/clean_gtk_support.c') diff --git a/src/clean_gtk_support.c b/src/clean_gtk_support.c index c6f6db1..7106b57 100644 --- a/src/clean_gtk_support.c +++ b/src/clean_gtk_support.c @@ -3,7 +3,6 @@ typedef long CleanInt; extern CleanInt handleSignal (CleanInt,CleanInt*); -extern CleanInt handleTimeout (CleanInt); static void clean_g_signal_handler_void (GtkWidget *target,gpointer data) { CleanInt args[2]; @@ -53,11 +52,3 @@ void clean_g_signal_connect (int type,GtkWidget *widget,char *signal,CleanInt id g_signal_connect (widget,signal,G_CALLBACK (callback),(gpointer)id); } - -void clean_g_timeout_add (CleanInt interval,CleanInt id) { - g_timeout_add (interval,G_SOURCE_FUNC (handleTimeout),(gpointer)id); -} - -void clean_g_timeout_add_seconds (CleanInt interval,CleanInt id) { - g_timeout_add_seconds (interval,G_SOURCE_FUNC (handleTimeout),(gpointer)id); -} -- cgit v1.2.3