Changeset 9148


Ignore:
Timestamp:
Sep 20, 2009, 2:13:02 PM (13 years ago)
Author:
charles
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/makemeta-ui.c

    r9130 r9148  
    183183    gtk_box_pack_start( GTK_BOX( v ), w, FALSE, FALSE, 0 );
    184184
    185     ui->progress_tag = g_timeout_add( 1000, onProgressDialogRefresh, ui );
     185    ui->progress_tag = gtr_timeout_add_seconds( 1, onProgressDialogRefresh, ui );
    186186    g_object_weak_ref( G_OBJECT( d ), onProgressDialogDestroyed, ui );
    187187    onProgressDialogRefresh( ui );
Note: See TracChangeset for help on using the changeset viewer.