diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-09-15 11:16:38 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-09-15 11:48:02 +0800 |
commit | 5310e4a0b10ded4c77ce9dfaff49d3e99e327462 (patch) | |
tree | b29d85e7bb2e7b3e772859fa7e0e2ff9ab33846e /mail/importers/elm-importer.c | |
parent | 47d25995c5ca78ff530ce6a23faebf6547898e8e (diff) | |
download | gsoc2013-evolution-5310e4a0b10ded4c77ce9dfaff49d3e99e327462.tar gsoc2013-evolution-5310e4a0b10ded4c77ce9dfaff49d3e99e327462.tar.gz gsoc2013-evolution-5310e4a0b10ded4c77ce9dfaff49d3e99e327462.tar.bz2 gsoc2013-evolution-5310e4a0b10ded4c77ce9dfaff49d3e99e327462.tar.lz gsoc2013-evolution-5310e4a0b10ded4c77ce9dfaff49d3e99e327462.tar.xz gsoc2013-evolution-5310e4a0b10ded4c77ce9dfaff49d3e99e327462.tar.zst gsoc2013-evolution-5310e4a0b10ded4c77ce9dfaff49d3e99e327462.zip |
Adapt to CamelOperation API changes.
Diffstat (limited to 'mail/importers/elm-importer.c')
-rw-r--r-- | mail/importers/elm-importer.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/mail/importers/elm-importer.c b/mail/importers/elm-importer.c index 80d4c474bc..e6afc2bbac 100644 --- a/mail/importers/elm-importer.c +++ b/mail/importers/elm-importer.c @@ -219,7 +219,7 @@ elm_import_done (struct _elm_import_msg *m) static void elm_import_free (struct _elm_import_msg *m) { - camel_operation_unref (m->status); + g_object_unref (m->status); g_free (m->status_what); g_mutex_free (m->status_lock); @@ -235,11 +235,6 @@ elm_status (CamelOperation *op, const gchar *what, gint pc, gpointer data) { struct _elm_import_msg *importer = data; - if (pc == CAMEL_OPERATION_START) - pc = 0; - else if (pc == CAMEL_OPERATION_END) - pc = 100; - g_mutex_lock (importer->status_lock); g_free (importer->status_what); importer->status_what = g_strdup (what); @@ -288,7 +283,11 @@ mail_importer_elm_import (EImport *ei, EImportTarget *target) m->target = (EImportTargetHome *)target; m->status_timeout_id = g_timeout_add (100, elm_status_timeout, m); m->status_lock = g_mutex_new (); - m->status = camel_operation_new (elm_status, m); + m->status = camel_operation_new (); + + g_signal_connect ( + m->status, "status", + G_CALLBACK (elm_status), m); id = m->base.seq; |