1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 16:24:02 +00:00

(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.

This commit is contained in:
Charles Kerr 2009-09-20 14:13:02 +00:00
parent b7cba41691
commit f5fa70141c

View file

@ -182,7 +182,7 @@ makeProgressDialog( GtkWidget * parent, MakeMetaUI * ui )
ui->progress_bar = w; ui->progress_bar = w;
gtk_box_pack_start( GTK_BOX( v ), w, FALSE, FALSE, 0 ); 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 ); g_object_weak_ref( G_OBJECT( d ), onProgressDialogDestroyed, ui );
onProgressDialogRefresh( ui ); onProgressDialogRefresh( ui );