Changeset 1941

Show
Ignore:
Timestamp:
05/11/07 17:41:40
Author:
pvanhoof
Message:

The stamp idea of Rob

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ChangeLog

    r1939 r1941  
     12007-05-10  Philip Van Hoof  <pvanhoof@gnome.org> 
     2 
     3        * Implemented Rob's priv->stamp++ idea for removing things from an 
     4        TnyGtkHeaderListModel 
     5 
    162007-05-10  Murray Cumming  <murrayc@murrayc.com> 
    27 
  • trunk/libtinymailui-gtk/tny-gtk-header-list-model.c

    r1938 r1941  
    625625        TnyGtkHeaderListModel *self; 
    626626        GObject *item; 
    627         GMainLoop *loop; 
     627        /* GMainLoop *loop; */ 
    628628        gint src; 
    629629} notify_views_data_t; 
     
    643643        g_object_unref (stuff->item); 
    644644        g_object_unref (stuff->self); 
    645         g_main_loop_unref (stuff->loop); 
     645        /* g_main_loop_unref (stuff->loop); */ 
    646646 
    647647        g_slice_free (notify_views_data_t, data); 
     
    677677                gtk_tree_path_append_index (path, i); 
    678678                gtk_tree_model_row_deleted ((GtkTreeModel *) stuff->self, path); 
     679                priv->stamp++; 
    679680                g_mutex_lock (priv->ra_lock); 
    680681                priv->cur_len--; 
     
    690691        g_static_rec_mutex_unlock (priv->iterator_lock); 
    691692 
    692         if (g_main_loop_is_running (stuff->loop)) 
    693                 g_main_loop_quit (stuff->loop); 
     693        /* if (g_main_loop_is_running (stuff->loop)) 
     694                g_main_loop_quit (stuff->loop); */ 
    694695 
    695696        return FALSE; 
     
    709710        stuff->item = g_object_ref (item); 
    710711 
    711         stuff->loop = g_main_loop_new (NULL, FALSE); 
     712        /* stuff->loop = g_main_loop_new (NULL, FALSE); */ 
    712713 
    713714        src = g_timeout_add_full (G_PRIORITY_HIGH_IDLE, 0, 
     
    715716        stuff->src = (gint) add_del_timeout ((TnyGtkHeaderListModel *) self, src); 
    716717 
    717         /* This truly sucks :-( */ 
    718         g_main_loop_run (stuff->loop); 
     718        /* This truly sucks :-(  
     719        g_main_loop_run (stuff->loop); */ 
    719720 
    720721        return;