[balsa/gmime3: 20/53] g_mime_init() has no arguments
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gmime3: 20/53] g_mime_init() has no arguments
- Date: Thu, 23 Jan 2020 19:59:08 +0000 (UTC)
commit b41e96819cacd891642563540748ac78d2d36837
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 963cb6ce2..6669b4fe0 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]