aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-vfolder.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-04-23 22:28:53 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-04-24 23:05:27 +0800
commitbc90469e7f3bfd31dc6530c2d1ba1cc519a8a3a7 (patch)
treef5d0cc91fc1568431e0b457406a9b3ea21157e0e /mail/mail-vfolder.c
parentf862e946b83d5f70001c3d81290ecc8a0d8ca2a0 (diff)
downloadgsoc2013-evolution-bc90469e7f3bfd31dc6530c2d1ba1cc519a8a3a7.tar.gz
gsoc2013-evolution-bc90469e7f3bfd31dc6530c2d1ba1cc519a8a3a7.tar.zst
gsoc2013-evolution-bc90469e7f3bfd31dc6530c2d1ba1cc519a8a3a7.zip
Camel is now GObject-based.
Diffstat (limited to 'mail/mail-vfolder.c')
-rw-r--r--mail/mail-vfolder.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/mail/mail-vfolder.c b/mail/mail-vfolder.c
index 5f0f0c8a72..3ff43cd10c 100644
--- a/mail/mail-vfolder.c
+++ b/mail/mail-vfolder.c
@@ -111,7 +111,7 @@ vfolder_setup_exec (struct _setup_msg *m)
l = m->sources_folder;
while (l && !vfolder_shutdown) {
d(printf(" Adding folder: %s\n", ((CamelFolder *)l->data)->full_name));
- camel_object_ref(l->data);
+ g_object_ref (l->data);
list = g_list_append(list, l->data);
l = l->next;
}
@@ -121,7 +121,7 @@ vfolder_setup_exec (struct _setup_msg *m)
l = list;
while (l) {
- camel_object_unref(l->data);
+ g_object_unref (l->data);
l = l->next;
}
g_list_free(list);
@@ -137,7 +137,7 @@ vfolder_setup_free (struct _setup_msg *m)
{
GList *l;
- camel_object_unref(m->folder);
+ g_object_unref (m->folder);
g_free(m->query);
l = m->sources_uri;
@@ -149,7 +149,7 @@ vfolder_setup_free (struct _setup_msg *m)
l = m->sources_folder;
while (l) {
- camel_object_unref(l->data);
+ g_object_unref (l->data);
l = l->next;
}
g_list_free(m->sources_folder);
@@ -172,7 +172,7 @@ vfolder_setup(CamelFolder *folder, const gchar *query, GList *sources_uri, GList
m = mail_msg_new(&vfolder_setup_info);
m->folder = folder;
- camel_object_ref(folder);
+ g_object_ref (folder);
m->query = g_strdup(query);
m->sources_uri = sources_uri;
m->sources_folder = sources_folder;
@@ -270,7 +270,7 @@ vfolder_adduri_exec (struct _adduri_msg *m)
camel_vee_folder_add_folder((CamelVeeFolder *)l->data, folder);
l = l->next;
}
- camel_object_unref(folder);
+ g_object_unref (folder);
}
}
@@ -282,7 +282,7 @@ vfolder_adduri_done(struct _adduri_msg *m)
static void
vfolder_adduri_free (struct _adduri_msg *m)
{
- g_list_foreach(m->folders, (GFunc)camel_object_unref, NULL);
+ g_list_foreach(m->folders, (GFunc)g_object_unref, NULL);
g_list_free(m->folders);
g_free(m->uri);
}
@@ -523,7 +523,7 @@ mail_vfolder_add_uri(CamelStore *store, const gchar *curi, gint remove)
g_warning ("vf is NULL for %s\n", rule->name);
continue;
}
- camel_object_ref(vf);
+ g_object_ref (vf);
folders = g_list_prepend(folders, vf);
}
}
@@ -890,7 +890,7 @@ static void context_rule_removed(ERuleContext *ctx, EFilterRule *rule)
camel_store_delete_folder(vfolder_store, rule->name, NULL);
/* this must be unref'd after its deleted */
if (folder)
- camel_object_unref ((CamelFolder *) folder);
+ g_object_unref ((CamelFolder *) folder);
}
static void
@@ -1350,7 +1350,7 @@ vfolder_foreach_cb (gpointer key, gpointer data, gpointer user_data)
CamelFolder *folder = CAMEL_FOLDER (data);
if (folder)
- camel_object_unref(folder);
+ g_object_unref (folder);
g_free (key);
}
@@ -1367,7 +1367,7 @@ mail_vfolder_shutdown (void)
}
if (vfolder_store) {
- camel_object_unref (vfolder_store);
+ g_object_unref (vfolder_store);
vfolder_store = NULL;
}