[balsa/gmime3: 18/51] g_mime_init() has no arguments
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gmime3: 18/51] g_mime_init() has no arguments
- Date: Mon, 24 Feb 2020 15:37:04 +0000 (UTC)
commit af9b72389fc9dc422e789187ef0cf8c4ce1854f7
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Thu Nov 21 15:07:51 2019 -0800
g_mime_init() has no arguments
and we need to initialize the parser-options.
modified: libbalsa/libbalsa.c
modified: src/ab-main.c
libbalsa/libbalsa.c | 12 ++----------
src/ab-main.c | 3 ++-
2 files changed, 4 insertions(+), 11 deletions(-)
---
diff --git a/libbalsa/libbalsa.c b/libbalsa/libbalsa.c
index e30ae1b1a..5e81339a8 100644
--- a/libbalsa/libbalsa.c
+++ b/libbalsa/libbalsa.c
@@ -67,16 +67,8 @@ libbalsa_init(void)
{
main_thread_id = g_thread_self();
- g_mime_init(GMIME_ENABLE_RFC2047_WORKAROUNDS);
-
- GMIME_TYPE_DATA_WRAPPER;
- GMIME_TYPE_FILTER;
- GMIME_TYPE_FILTER_CRLF;
- GMIME_TYPE_PARSER;
- GMIME_TYPE_STREAM;
- GMIME_TYPE_STREAM_BUFFER;
- GMIME_TYPE_STREAM_MEM;
- GMIME_TYPE_STREAM_NULL;
+ g_mime_init(); /* Registers all GMime types */
+ libbalsa_parser_options_init();
/* Register our types to avoid possible race conditions. See
output of "valgrind --tool=helgrind --log-file=balsa.log balsa"
diff --git a/src/ab-main.c b/src/ab-main.c
index 752bfab11..12d65eba2 100644
--- a/src/ab-main.c
+++ b/src/ab-main.c
@@ -1116,7 +1116,8 @@ main(int argc, char *argv[])
bab_init();
balsa_ab_setup_libbalsa_notification((GApplication *) application);
- g_mime_init(GMIME_ENABLE_RFC2047_WORKAROUNDS);
+ g_mime_init();
+ libbalsa_parser_options_init();
/* load address book data */
libbalsa_conf_push_group("Globals");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]