Changeset 12654


Ignore:
Timestamp:
Aug 8, 2011, 5:06:46 PM (10 years ago)
Author:
jordan
Message:

remove the gtr_timeout_add_seconds() portability wrapper around gdk_threads_add_timeout_seconds(); it's unnecessary now that the minimum gtk version's been bumped.

Location:
trunk/gtk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/details.c

    r12650 r12654  
    25652565
    25662566    gtr_dialog_set_content( GTK_DIALOG( d ), n );
    2567     di->periodic_refresh_tag = gtr_timeout_add_seconds( SECONDARY_WINDOW_REFRESH_INTERVAL_SECONDS,
    2568                                                         periodic_refresh, di );
     2567    di->periodic_refresh_tag = gdk_threads_add_timeout_seconds( SECONDARY_WINDOW_REFRESH_INTERVAL_SECONDS,
     2568                                                                periodic_refresh, di );
    25692569    return d;
    25702570}
  • trunk/gtk/file-list.c

    r12639 r12654  
    563563
    564564        refresh( data );
    565         data->timeout_tag = gtr_timeout_add_seconds( SECONDARY_WINDOW_REFRESH_INTERVAL_SECONDS, refreshModel, data );
     565        data->timeout_tag = gdk_threads_add_timeout_seconds( SECONDARY_WINDOW_REFRESH_INTERVAL_SECONDS, refreshModel, data );
    566566    }
    567567
  • trunk/gtk/main.c

    r12648 r12654  
    840840
    841841    /* start model update timer */
    842     cbdata->timer = gtr_timeout_add_seconds( MAIN_WINDOW_REFRESH_INTERVAL_SECONDS, update_model_loop, cbdata );
     842    cbdata->timer = gdk_threads_add_timeout_seconds( MAIN_WINDOW_REFRESH_INTERVAL_SECONDS, update_model_loop, cbdata );
    843843    update_model_once( cbdata );
    844844
  • trunk/gtk/makemeta-ui.c

    r12638 r12654  
    191191    gtk_box_pack_start( GTK_BOX( v ), w, FALSE, FALSE, 0 );
    192192
    193     ui->progress_tag = gtr_timeout_add_seconds( SECONDARY_WINDOW_REFRESH_INTERVAL_SECONDS, onProgressDialogRefresh, ui );
     193    ui->progress_tag = gdk_threads_add_timeout_seconds( SECONDARY_WINDOW_REFRESH_INTERVAL_SECONDS, onProgressDialogRefresh, ui );
    194194    g_object_weak_ref( G_OBJECT( d ), onProgressDialogDestroyed, ui );
    195195    onProgressDialogRefresh( ui );
  • trunk/gtk/msgwin.c

    r12234 r12654  
    536536    gtk_container_add( GTK_CONTAINER( win ), vbox );
    537537
    538     data->refresh_tag = gtr_timeout_add_seconds( SECONDARY_WINDOW_REFRESH_INTERVAL_SECONDS, onRefresh, data );
     538    data->refresh_tag = gdk_threads_add_timeout_seconds( SECONDARY_WINDOW_REFRESH_INTERVAL_SECONDS, onRefresh, data );
    539539    g_object_weak_ref( G_OBJECT( win ), onWindowDestroyed, data );
    540540
  • trunk/gtk/relocate.c

    r12204 r12654  
    135135        data->done = TR_LOC_DONE;
    136136        onTimer( data );
    137         gtr_timeout_add_seconds( 1, onTimer, data );
     137        gdk_threads_add_timeout_seconds( 1, onTimer, data );
    138138    }
    139139    else
  • trunk/gtk/stats.c

    r12412 r12654  
    183183    g_object_set_data_full( G_OBJECT( d ), "data", ui, g_free );
    184184    g_signal_connect( d, "response", G_CALLBACK( dialogResponse ), ui );
    185     i = gtr_timeout_add_seconds( SECONDARY_WINDOW_REFRESH_INTERVAL_SECONDS, updateStats, ui );
     185    i = gdk_threads_add_timeout_seconds( SECONDARY_WINDOW_REFRESH_INTERVAL_SECONDS, updateStats, ui );
    186186    g_object_weak_ref( G_OBJECT( d ), dialogDestroyed, GUINT_TO_POINTER( i ) );
    187187    return d;
  • trunk/gtk/tr-core.c

    r12638 r12654  
    800800
    801801        if( !p->monitor_idle_tag )
    802             p->monitor_idle_tag = gtr_timeout_add_seconds( 1, core_watchdir_idle, core );
     802            p->monitor_idle_tag = gdk_threads_add_timeout_seconds( 1, core_watchdir_idle, core );
    803803    }
    804804}
  • trunk/gtk/tr-prefs.c

    r12639 r12654  
    141141        g_object_set_data_full( o, IDLE_DATA, data, spin_idle_data_free );
    142142        g_object_ref( G_OBJECT( o ) );
    143         gtr_timeout_add_seconds( 1, spun_cb_idle, w );
     143        gdk_threads_add_timeout_seconds( 1, spun_cb_idle, w );
    144144    }
    145145    g_timer_start( data->last_change );
  • trunk/gtk/util.c

    r12639 r12654  
    627627}
    628628
    629 guint
    630 gtr_timeout_add_seconds( guint seconds, GSourceFunc function, gpointer data )
    631 {
    632     return gdk_threads_add_timeout_seconds( seconds, function, data );
    633 }
    634 
    635629void
    636630gtr_http_failure_dialog( GtkWidget * parent, const char * url, long response_code )
  • trunk/gtk/util.h

    r12639 r12654  
    109109***/
    110110
    111 /* backwards-compatible wrapper around gdk_threads_add_timeout_seconds() */
    112 guint gtr_timeout_add_seconds( guint seconds, GSourceFunc func, gpointer data );
    113 
    114111/* backwards-compatible wrapper around gdk_threads_add_idle() */
    115112guint gtr_idle_add( GSourceFunc  func, gpointer data );
Note: See TracChangeset for help on using the changeset viewer.