Changeset 1922

Show
Ignore:
Timestamp:
05/08/07 20:29:14
Author:
pvanhoof
Message:

Speedups

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libtinymailui-gtk/tny-gtk-header-list-model.c

    r1921 r1922  
    496496        g_mutex_unlock (me->ra_lock); 
    497497 
     498        if (me->timeout_span < 5000) 
     499                me->timeout_span += 100; 
    498500        me->add_timeout = 0; 
    499501        g_object_unref (me); 
     
    589591                } 
    590592 
    591                 me->add_timeout = g_timeout_add_full (G_PRIORITY_DEFAULT_IDLE,1000,  
    592                         notify_views_add, me, notify_views_add_destroy); 
     593                me->add_timeout = g_timeout_add_full (G_PRIORITY_DEFAULT_IDLE,  
     594                        me->timeout_span, notify_views_add, me,  
     595                        notify_views_add_destroy); 
    593596        } 
    594597 
     
    852855        self->cur_len = 0; 
    853856 
     857        self->timeout_span = 100; 
    854858        self->del_timeouts = NULL; 
    855859        self->add_timeout = 0; 
     
    881885        g_static_rec_mutex_lock (self->iterator_lock); 
    882886 
     887        self->timeout_span = 100; 
    883888        if (self->add_timeout > 0) { 
    884889                g_source_remove (self->add_timeout); 
  • trunk/libtinymailui-gtk/tny-gtk-header-list-model.h

    r1916 r1922  
    7272        guint add_timeout; 
    7373 
     74        guint timeout_span; 
    7475        GPtrArray *items; 
    7576        GArray *del_timeouts;