aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-12-02 00:57:32 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-12-02 04:01:14 +0800
commit76fbb9d23242cba427d71ded5590a9cad271b2b3 (patch)
tree8455d618023e0e82209e610868c9a43fbf41c00e /mail/message-list.c
parenta0b641b7c6160bfda32ed2bcef40a364973a934b (diff)
downloadgsoc2013-evolution-76fbb9d23242cba427d71ded5590a9cad271b2b3.tar
gsoc2013-evolution-76fbb9d23242cba427d71ded5590a9cad271b2b3.tar.gz
gsoc2013-evolution-76fbb9d23242cba427d71ded5590a9cad271b2b3.tar.bz2
gsoc2013-evolution-76fbb9d23242cba427d71ded5590a9cad271b2b3.tar.lz
gsoc2013-evolution-76fbb9d23242cba427d71ded5590a9cad271b2b3.tar.xz
gsoc2013-evolution-76fbb9d23242cba427d71ded5590a9cad271b2b3.tar.zst
gsoc2013-evolution-76fbb9d23242cba427d71ded5590a9cad271b2b3.zip
Kill message_list_free_uids().
Use em_utils_uids_free() instead.
Diffstat (limited to 'mail/message-list.c')
-rw-r--r--mail/message-list.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index 90c0812aff..f45afbed34 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -496,7 +496,7 @@ static void
clear_selection(MessageList *ml, struct _MLSelection *selection)
{
if (selection->uids) {
- message_list_free_uids(ml, selection->uids);
+ em_utils_uids_free(selection->uids);
selection->uids = NULL;
}
if (selection->folder) {
@@ -846,7 +846,7 @@ message_list_copy(MessageList *ml, gboolean cut)
p->clipboard.folder_uri = g_strdup(ml->folder_uri);
gtk_selection_owner_set(p->invisible, GDK_SELECTION_CLIPBOARD, gtk_get_current_event_time());
} else {
- message_list_free_uids(ml, uids);
+ em_utils_uids_free(uids);
gtk_selection_owner_set(NULL, GDK_SELECTION_CLIPBOARD, gtk_get_current_event_time());
}
}
@@ -2046,7 +2046,7 @@ ml_tree_drag_data_get (ETree *tree, gint row, ETreePath path, gint col,
}
}
- message_list_free_uids(ml, uids);
+ em_utils_uids_free(uids);
}
/* TODO: merge this with the folder tree stuff via empopup targets */
@@ -2891,7 +2891,7 @@ build_tree (MessageList *ml, CamelFolderThread *thread, CamelFolderChangeInfo *c
e_tree_memory_thaw(E_TREE_MEMORY(etm));
#ifdef BROKEN_ETREE
message_list_set_selected(ml, selected);
- message_list_free_uids(ml, selected);
+ em_utils_uids_free(selected);
#else
} else {
static gint tree_equal(ETreeModel *etm, ETreePath ap, CamelFolderThreadNode *bp);
@@ -3216,7 +3216,7 @@ build_flat (MessageList *ml, GPtrArray *summary, CamelFolderChangeInfo *changes)
e_tree_memory_thaw(E_TREE_MEMORY(etm));
#ifdef BROKEN_ETREE
message_list_set_selected(ml, selected);
- message_list_free_uids(ml, selected);
+ em_utils_uids_free(selected);
#else
}
#endif
@@ -3618,7 +3618,7 @@ on_selection_changed_cmd(ETree *tree, MessageList *ml)
ml->last_sel_single = uids->len == 1;
- message_list_free_uids(ml, uids);
+ em_utils_uids_free(uids);
}
static gint
@@ -3750,15 +3750,6 @@ message_list_thaw(MessageList *ml)
}
}
-void message_list_free_uids(MessageList *ml, GPtrArray *uids)
-{
- gint i;
-
- for (i=0;i<uids->len;i++)
- g_free(uids->pdata[i]);
- g_ptr_array_free(uids, TRUE);
-}
-
/* set whether we are in threaded view or flat view */
void
message_list_set_threaded_expand_all (MessageList *ml)