aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/bbdb/gaimbuddies.c25
-rw-r--r--plugins/groupwise-features/share-folder-common.c2
-rw-r--r--plugins/profiler/profiler.c2
-rw-r--r--plugins/pst-import/pst-importer.c4
4 files changed, 23 insertions, 10 deletions
diff --git a/plugins/bbdb/gaimbuddies.c b/plugins/bbdb/gaimbuddies.c
index 184c071e39..66f77bcc99 100644
--- a/plugins/bbdb/gaimbuddies.c
+++ b/plugins/bbdb/gaimbuddies.c
@@ -40,7 +40,6 @@
#include <string.h>
#include <libebook/e-book.h>
-#include <libedataserver/md5-utils.h>
#include <libedataserverui/e-source-combo-box.h>
#include <sys/time.h>
@@ -75,15 +74,29 @@ get_buddy_filename (void)
static gchar *
get_md5_as_string (const gchar *filename)
{
- guchar d[16];
+ GMappedFile *mapped_file;
+ const gchar *contents;
+ gchar *digest;
+ gsize length;
+ GError *error = NULL;
g_return_val_if_fail (filename != NULL, NULL);
- md5_get_digest_from_file (filename, d);
+ mapped_file = g_mapped_file_new (filename, FALSE, &error);
+ if (mapped_file == NULL) {
+ g_warning ("%s", error->message);
+ return NULL;
+ }
+
+ contents = g_mapped_file_get_contents (mapped_file);
+ length = g_mapped_file_get_length (mapped_file);
+
+ digest = g_compute_checksum_for_data (
+ G_CHECKSUM_MD5, (guchar *) contents, length);
+
+ g_mapped_file_unref (mapped_file);
- return g_strdup_printf ("%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x",
- d[0], d[1], d[2], d[3], d[4], d[5], d[6], d[7],
- d[8], d[9], d[10], d[11], d[12], d[13], d[14], d[15]);
+ return digest;
}
void
diff --git a/plugins/groupwise-features/share-folder-common.c b/plugins/groupwise-features/share-folder-common.c
index 14e3b0e5bd..992664f863 100644
--- a/plugins/groupwise-features/share-folder-common.c
+++ b/plugins/groupwise-features/share-folder-common.c
@@ -138,7 +138,7 @@ struct _EMCreateFolder {
static gchar *
create_folder_desc (struct _EMCreateFolder *m)
{
- return g_strdup_printf (_("Creating folder `%s'"), m->full_name);
+ return g_strdup_printf (_("Creating folder '%s'"), m->full_name);
}
static void
diff --git a/plugins/profiler/profiler.c b/plugins/profiler/profiler.c
index b57ba83817..e3ecd07a9e 100644
--- a/plugins/profiler/profiler.c
+++ b/plugins/profiler/profiler.c
@@ -45,7 +45,7 @@ org_gnome_evolution_profiler_event(EPlugin *ep, EProfileEventTarget *t)
name = g_strdup_printf("eprofile.%ld", (glong) getpid());
fp = fopen(name, "w");
if (fp)
- fprintf(stderr, "Generating profiling data in `%s'\n", name);
+ fprintf(stderr, "Generating profiling data in '%s'\n", name);
g_free(name);
}
diff --git a/plugins/pst-import/pst-importer.c b/plugins/pst-import/pst-importer.c
index 7d2868042a..fa0b61e993 100644
--- a/plugins/pst-import/pst-importer.c
+++ b/plugins/pst-import/pst-importer.c
@@ -453,7 +453,7 @@ pst_import_file (PstImporter *m)
filename = g_filename_from_uri (((EImportTargetURI *)m->target)->uri_src, NULL, NULL);
m->parent_uri = g_strdup (((EImportTargetURI *)m->target)->uri_dest); /* Destination folder, was set in our widget */
- camel_operation_start (NULL, _("Importing `%s'"), filename);
+ camel_operation_start (NULL, _("Importing '%s'"), filename);
if (GPOINTER_TO_INT (g_datalist_get_data (&m->target->data, "pst-do-mail"))) {
mail_tool_uri_to_folder (m->parent_uri, CAMEL_STORE_FOLDER_CREATE, &m->base.ex);
@@ -559,7 +559,7 @@ pst_process_item (PstImporter *m, pst_desc_tree *d_ptr)
if (item->folder != NULL) {
pst_process_folder (m, item);
- camel_operation_start (NULL, _("Importing `%s'"), item->file_as.str);
+ camel_operation_start (NULL, _("Importing '%s'"), item->file_as.str);
} else {
if (m->folder_count && (m->current_item < m->folder_count)) {
camel_operation_progress (NULL, (m->current_item * 100) / m->folder_count);