[balsa/gmime3] g_mime_init() has no arguments
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gmime3] g_mime_init() has no arguments
- Date: Thu, 21 Nov 2019 23:16:59 +0000 (UTC)
commit 9ce3e9d4bcfe85fc4346fbbf9d3e579979f25eba
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 e7bcb8ccd..76e0277d6 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 0588acaa3..c4e5bcf4d 100644
--- a/src/ab-main.c
+++ b/src/ab-main.c
@@ -1111,7 +1111,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]