From f5fa70141c033835e89a0af42adeac8b03a00729 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 20 Sep 2009 14:13:02 +0000 Subject: [PATCH] (trunk gtk) gah, I'm so stupid. I go to the trouble of writing a backwards-compatable wrapper for gdk_threads_add_timeout_seconds(), but then when rewriting the "create torrent" ui and I need to use a timer to update the progressbar, what do I use... my fingers have "g_timeout_add" programmed into them. --- gtk/makemeta-ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/makemeta-ui.c b/gtk/makemeta-ui.c index 7d83b9d13..4a00a866a 100644 --- a/gtk/makemeta-ui.c +++ b/gtk/makemeta-ui.c @@ -182,7 +182,7 @@ makeProgressDialog( GtkWidget * parent, MakeMetaUI * ui ) ui->progress_bar = w; gtk_box_pack_start( GTK_BOX( v ), w, FALSE, FALSE, 0 ); - ui->progress_tag = g_timeout_add( 1000, onProgressDialogRefresh, ui ); + ui->progress_tag = gtr_timeout_add_seconds( 1, onProgressDialogRefresh, ui ); g_object_weak_ref( G_OBJECT( d ), onProgressDialogDestroyed, ui ); onProgressDialogRefresh( ui );