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/details.c

    r7141 r7463  
    2929#include "util.h"
    3030
    31 #define UPDATE_INTERVAL_MSEC 2000
     31#define UPDATE_INTERVAL_SECONDS 2
    3232
    3333/****
     
    15351535    gtk_box_pack_start( GTK_BOX( GTK_DIALOG( d )->vbox ), n, TRUE, TRUE, 0 );
    15361536
    1537     tag = g_timeout_add ( UPDATE_INTERVAL_MSEC, periodic_refresh, d );
     1537    tag = gtr_timeout_add_seconds( UPDATE_INTERVAL_SECONDS, periodic_refresh, d );
    15381538    g_object_set_data_full ( G_OBJECT( d ), "tag",
    15391539                             GUINT_TO_POINTER( tag ), remove_tag );
Note: See TracChangeset for help on using the changeset viewer.