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

    r7404 r7464  
    2929#include "util.h"
    3030
    31 #define UPDATE_INTERVAL_MSEC 2000
     31#define UPDATE_INTERVAL_SECONDS 2
    3232
    3333/****
     
    15301530    gtk_box_pack_start( GTK_BOX( GTK_DIALOG( d )->vbox ), n, TRUE, TRUE, 0 );
    15311531
    1532     tag = g_timeout_add ( UPDATE_INTERVAL_MSEC, periodic_refresh, d );
     1532    tag = gtr_timeout_add_seconds( UPDATE_INTERVAL_SECONDS, periodic_refresh, d );
    15331533    g_object_set_data_full ( G_OBJECT( d ), "tag",
    15341534                             GUINT_TO_POINTER( tag ), remove_tag );
Note: See TracChangeset for help on using the changeset viewer.