Changeset 7464 for trunk/gtk/main.c


Ignore:
Timestamp:
Dec 22, 2008, 5:39:03 AM (12 years ago)
Author:
charles
Message:

(trunk gtk) #1585: use g_timeout_add_seconds() where appropriate to group timers together for fewer scheduled wakeups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/main.c

    r7396 r7464  
    613613    /* start scheduled rate timer */
    614614    updateScheduledLimits ( tr_core_session( cbdata->core ) );
    615     g_timeout_add( 60 * 1000, updateScheduledLimits,
    616                   tr_core_session( cbdata->core ) );
     615    gtr_timeout_add_seconds( 60, updateScheduledLimits, tr_core_session( cbdata->core ) );
    617616
    618617    /* either show the window or iconify it */
Note: See TracChangeset for help on using the changeset viewer.