tracker/tracker-eds-build-fix.patch
Deji Akingunola b56d86e0e2 - Update to 0.8.11 release
- Adapt to EDS Camel API changes (patch not tested yet).
2010-06-16 22:55:29 +00:00

114 lines
4.3 KiB
Diff

--- src/plugins/evolution/tracker-evolution-plugin.c 2010-04-29 13:20:00.000000000 -0400
+++ src/plugins/evolution/tracker-evolution-plugin.c.new 2010-06-16 18:21:39.776821965 -0400
@@ -39,27 +39,7 @@
#include <sqlite3.h>
-#include <camel/camel-mime-message.h>
-#include <camel/camel-i18n.h>
-#include <camel/camel-store.h>
-#include <camel/camel-folder.h>
-#include <camel/camel-db.h>
-#include <camel/camel-offline-store.h>
-#include <camel/camel-session.h>
-#include <camel/camel-url.h>
-#include <camel/camel-stream.h>
-#include <camel/camel-stream-mem.h>
-#include <camel/camel-multipart.h>
-#include <camel/camel-multipart-encrypted.h>
-#include <camel/camel-multipart-signed.h>
-#include <camel/camel-medium.h>
-#include <camel/camel-gpg-context.h>
-#include <camel/camel-smime-context.h>
-#include <camel/camel-string-utils.h>
-#include <camel/camel-stream-filter.h>
-#include <camel/camel-stream-null.h>
-#include <camel/camel-mime-filter-charset.h>
-#include <camel/camel-mime-filter-windows.h>
+#include <camel/camel.h>
#include <mail/mail-config.h>
#include <mail/mail-session.h>
@@ -303,8 +283,8 @@
static void
folder_registry_free (FolderRegistry *registry)
{
- camel_object_remove_event (registry->folder, registry->hook_info->hook_id);
- camel_object_unref (registry->folder);
+ g_signal_handler_disconnect (registry->folder, registry->hook_info->hook_id);
+ g_object_unref (registry->folder);
g_free (registry->hook_info->account_uri);
g_slice_free (OnSummaryChangedInfo, registry->hook_info);
g_slice_free (FolderRegistry, registry);
@@ -321,7 +301,7 @@
registry->hook_info->account_uri = g_strdup (account_uri);
registry->hook_info->self = self; /* weak */
registry->hook_info->hook_id = 0;
- camel_object_ref (folder);
+ g_object_ref (folder);
registry->folder = folder;
return registry;
@@ -1340,8 +1320,8 @@
goto not_ready;
}
- hook_id = camel_object_hook_event (folder, "folder_changed",
- CAMEL_CALLBACK (on_folder_summary_changed),
+ hook_id = g_signal_connect (folder, "folder_changed",
+ G_CALLBACK (on_folder_summary_changed),
registry->hook_info);
registry->hook_info->hook_id = hook_id;
@@ -1816,7 +1796,7 @@
static void
on_folder_renamed (CamelStore *store,
- CamelRenameInfo *info,
+ CamelFolderInfo *info,
StoreRegistry *registry)
{
unregister_account (registry->self, registry->account);
@@ -1842,7 +1822,7 @@
static void
store_registry_free (StoreRegistry *registry)
{
- camel_object_remove_event (registry->store, registry->hook_id);
+ g_signal_handler_disconnect (registry->store, registry->hook_id);
camel_object_unref (registry->store);
g_slice_free (StoreRegistry, registry);
}
@@ -1871,8 +1851,8 @@
/* Hook up catching folder changes in the store */
registry = store_registry_new (store, account, self);
- hook_id = camel_object_hook_event (store, "folder_created",
- CAMEL_CALLBACK (on_folder_created),
+ hook_id = g_signal_connect (store, "folder_created",
+ G_CALLBACK (on_folder_created),
registry);
registry->hook_id = hook_id;
g_hash_table_replace (priv->registered_stores,
@@ -1880,8 +1860,8 @@
registry);
registry = store_registry_new (store, account, self);
- hook_id = camel_object_hook_event (store, "folder_renamed",
- CAMEL_CALLBACK (on_folder_renamed),
+ hook_id = g_signal_connect (store, "folder_renamed",
+ G_CALLBACK (on_folder_renamed),
registry);
registry->hook_id = hook_id;
g_hash_table_replace (priv->registered_stores,
@@ -1889,8 +1869,8 @@
registry);
registry = store_registry_new (store, account, self);
- hook_id = camel_object_hook_event (store, "folder_deleted",
- CAMEL_CALLBACK (on_folder_deleted),
+ hook_id = g_signal_connect (store, "folder_deleted",
+ G_CALLBACK (on_folder_deleted),
registry);
registry->hook_id = hook_id;
g_hash_table_replace (priv->registered_stores,