diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/em-folder-tree-model.c | 10 |
2 files changed, 12 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 10a923c9e1..5228a70f7e 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2007-12-15 Matthew Barnes <mbarnes@redhat.com> + + * em-folder-tree-model.c (emft_model_unread_count_changed), + (emfolder_tree_model_set_unread_count): + Fix recently introduced compiler warnings. + 2007-12-15 Milan Crha <mcrha@redhat.com> ** Part of fix for bug #492702 diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c index 69b9c55f3b..7f05c6ea21 100644 --- a/mail/em-folder-tree-model.c +++ b/mail/em-folder-tree-model.c @@ -256,7 +256,8 @@ emft_model_unread_count_changed (GtkTreeModel *model, GtkTreeIter *iter) GtkTreeIter parent_iter; GtkTreeIter child_iter = *iter; - g_signal_handler_block (model, emft_model_unread_count_changed); + g_signal_handlers_block_by_func ( + model, emft_model_unread_count_changed, NULL); /* Folders are displayed with a bold weight to indicate that they contain unread messages. We signal that parent rows @@ -271,7 +272,8 @@ emft_model_unread_count_changed (GtkTreeModel *model, GtkTreeIter *iter) child_iter = parent_iter; } - g_signal_handler_unblock (model, emft_model_unread_count_changed); + g_signal_handlers_unblock_by_func ( + model, emft_model_unread_count_changed, NULL); } static void @@ -1281,8 +1283,8 @@ em_folder_tree_model_set_unread_count (EMFolderTreeModel *model, CamelStore *sto gtk_tree_store_set ((GtkTreeStore *) model, &iter, COL_UINT_UNREAD, unread, -1); - /* May be this is from where we should probagate unread count to parents etc. */ - emft_model_unread_count_changed (model, &iter); + /* May be this is from where we should propagate unread count to parents etc. */ + emft_model_unread_count_changed (GTK_TREE_MODEL (model), &iter); } |