Changeset 7464 for trunk/gtk/util.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/util.c

    r6873 r7464  
    642642}
    643643
     644/***
     645****
     646***/
     647
     648guint
     649gtr_timeout_add_seconds( guint        interval,
     650                         GSourceFunc  function,
     651                         gpointer     data )
     652{
     653#if GLIB_CHECK_VERSION( 2,14,0 )
     654    return g_timeout_add_seconds( interval, function, data );
     655#else
     656    return g_timeout_add( interval*1000, function, data );
     657#endif
     658}
Note: See TracChangeset for help on using the changeset viewer.