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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.4x/gtk/tr-icon.c

    r6795 r7463  
    2727#else
    2828
    29  #define UPDATE_INTERVAL 2500
     29#define UPDATE_INTERVAL_SECONDS 2
    3030
    3131static void
     
    9191    g_signal_connect( icon, "activate", G_CALLBACK( activated ), NULL );
    9292    g_signal_connect( icon, "popup-menu", G_CALLBACK( popup ), NULL );
    93     id = g_timeout_add( UPDATE_INTERVAL, refresh_tooltip_cb, icon );
     93    id = gtr_timeout_add_seconds( UPDATE_INTERVAL_SECONDS, refresh_tooltip_cb, icon );
    9494    g_object_set_data( G_OBJECT( icon ), "tr-core", core );
    9595    g_object_set_data_full( G_OBJECT(
Note: See TracChangeset for help on using the changeset viewer.