Changeset 1778
- Timestamp:
- 03/30/07 20:01:56
- Files:
-
- trunk/libtinymailui-gtk/tny-gtk-header-list-model.c (modified) (8 diffs)
- trunk/libtinymailui-gtk/tny-gtk-header-list-model.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libtinymailui-gtk/tny-gtk-header-list-model.c
r1777 r1778 378 378 g_static_rec_mutex_lock (list_model->iterator_lock); 379 379 380 g_static_rec_mutex_lock (list_model->ra_l_lock);381 380 if (G_LIKELY (!iter)) 382 381 retval = list_model->cur_len; /* list_model->items->len; */ 383 g_static_rec_mutex_unlock (list_model->ra_l_lock);384 382 385 383 g_static_rec_mutex_unlock (list_model->iterator_lock); … … 461 459 gboolean needmore = FALSE; 462 460 463 g_static_rec_mutex_lock (me->ra_l_lock);464 461 465 462 g_mutex_lock (me->ra_lock); … … 490 487 iter.stamp = me->stamp; 491 488 iter.user_data = (gpointer) i; 492 g_static_rec_mutex_lock (me->ra_l_lock);493 489 me->cur_len = i+1; 494 490 gtk_tree_model_row_inserted ((GtkTreeModel *)me, path, &iter); 495 g_static_rec_mutex_lock (me->ra_l_lock);496 491 497 492 gtk_tree_path_free (path); … … 499 494 gdk_threads_leave(); 500 495 501 g_static_rec_mutex_unlock (me->ra_l_lock);502 496 503 497 … … 514 508 515 509 g_static_rec_mutex_lock (me->iterator_lock); 516 g_static_rec_mutex_lock (me->ra_l_lock);517 510 518 511 /* Prepend something to the list itself. The get_length will auto update … … 536 529 g_mutex_unlock (me->ra_lock); 537 530 538 g_static_rec_mutex_unlock (me->ra_l_lock);539 531 g_static_rec_mutex_unlock (me->iterator_lock); 540 532 … … 714 706 self->iterator_lock = NULL; 715 707 716 g_static_rec_mutex_free (self->ra_l_lock);717 self->ra_l_lock = NULL;718 708 719 709 g_mutex_free (self->ra_lock); … … 745 735 self->iterator_lock = g_new0 (GStaticRecMutex, 1); 746 736 g_static_rec_mutex_init (self->iterator_lock); 747 self->ra_l_lock = g_new0 (GStaticRecMutex, 1);748 g_static_rec_mutex_init (self->ra_l_lock);749 737 self->cur_len = 0; 750 738 trunk/libtinymailui-gtk/tny-gtk-header-list-model.h
r1777 r1778 64 64 GObject parent; 65 65 66 GStaticRecMutex *iterator_lock , *ra_l_lock;66 GStaticRecMutex *iterator_lock; 67 67 TnyFolder *folder; 68 68 gint stamp, recent_updated;
