aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-utils.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/em-folder-utils.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/em-folder-utils.c')
-rw-r--r--mail/em-folder-utils.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/mail/em-folder-utils.c b/mail/em-folder-utils.c
index 3381275858..ea26d9ed9a 100644
--- a/mail/em-folder-utils.c
+++ b/mail/em-folder-utils.c
@@ -158,7 +158,7 @@ emft_copy_folders__exec (struct _EMCopyFolders *m)
goto exception;
if (!(tofolder = camel_store_get_folder (m->tostore, toname->str, CAMEL_STORE_FOLDER_CREATE, &m->base.ex))) {
- camel_object_unref (fromfolder);
+ g_object_unref (fromfolder);
goto exception;
}
@@ -169,8 +169,8 @@ emft_copy_folders__exec (struct _EMCopyFolders *m)
if (m->delete && !camel_exception_is_set (&m->base.ex))
camel_folder_sync(fromfolder, TRUE, NULL);
- camel_object_unref (fromfolder);
- camel_object_unref (tofolder);
+ g_object_unref (fromfolder);
+ g_object_unref (tofolder);
}
}
@@ -217,8 +217,8 @@ emft_copy_folders__exec (struct _EMCopyFolders *m)
static void
emft_copy_folders__free (struct _EMCopyFolders *m)
{
- camel_object_unref (m->fromstore);
- camel_object_unref (m->tostore);
+ g_object_unref (m->fromstore);
+ g_object_unref (m->tostore);
g_free (m->frombase);
g_free (m->tobase);
@@ -239,9 +239,9 @@ em_folder_utils_copy_folders(CamelStore *fromstore, const gchar *frombase, Camel
gint seq;
m = mail_msg_new (&copy_folders_info);
- camel_object_ref (fromstore);
+ g_object_ref (fromstore);
m->fromstore = fromstore;
- camel_object_ref (tostore);
+ g_object_ref (tostore);
m->tostore = tostore;
m->frombase = g_strdup (frombase);
m->tobase = g_strdup (tobase);
@@ -312,9 +312,9 @@ emfu_copy_folder_selected (const gchar *uri, gpointer data)
camel_url_free (url);
fail:
if (fromstore)
- camel_object_unref(fromstore);
+ g_object_unref (fromstore);
if (tostore)
- camel_object_unref(tostore);
+ g_object_unref (tostore);
camel_exception_clear (&ex);
g_free (cfd);
}
@@ -451,7 +451,7 @@ em_folder_utils_delete_folder (CamelFolder *folder)
return;
}
- camel_object_ref (folder);
+ g_object_ref (folder);
if (mail_folder_cache_get_folder_info_flags (mail_folder_cache_get_default (), folder, &flags) && (flags & CAMEL_FOLDER_CHILDREN)) {
dialog = e_alert_dialog_new_for_args (parent,
@@ -464,7 +464,7 @@ em_folder_utils_delete_folder (CamelFolder *folder)
folder->full_name, NULL);
}
- g_object_set_data_full ((GObject *) dialog, "folder", folder, camel_object_unref);
+ g_object_set_data_full ((GObject *) dialog, "folder", folder, g_object_unref);
g_signal_connect (dialog, "response", G_CALLBACK (emfu_delete_response), NULL);
gtk_widget_show (dialog);
}
@@ -522,7 +522,7 @@ static void
emfu_create_folder__free (struct _EMCreateFolder *m)
{
camel_store_free_folder_info (m->store, m->fi);
- camel_object_unref (m->store);
+ g_object_unref (m->store);
g_free (m->full_name);
g_free (m->parent);
g_free (m->name);
@@ -554,7 +554,7 @@ emfu_create_folder_real (CamelStore *store, const gchar *full_name, void (* done
}
m = mail_msg_new (&create_folder_info);
- camel_object_ref (store);
+ g_object_ref (store);
m->store = store;
m->full_name = g_strdup (full_name);
m->parent = g_strdup (parent);
@@ -618,7 +618,7 @@ emfu_popup_new_folder_response (EMFolderSelector *emfs, gint response, gpointer
si = em_folder_tree_model_lookup_store_info (
EM_FOLDER_TREE_MODEL (model), store);
if (si == NULL) {
- camel_object_unref (store);
+ g_object_unref (store);
g_return_if_reached();
}
@@ -644,7 +644,7 @@ emfu_popup_new_folder_response (EMFolderSelector *emfs, gint response, gpointer
emfu_create_folder_real (si->store, path, new_folder_created_cb, emcftd);
}
- camel_object_unref (store);
+ g_object_unref (store);
camel_exception_clear (&ex);
}