[balsa/gmime3: 7/50] g_mime_content_type_to_string() has been renamed



commit bd3cea4cc72fedc11b570670f2228a9f7afab112
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Wed Nov 20 19:17:22 2019 -0800

    g_mime_content_type_to_string() has been renamed
    
    to g_mime_content_type_get_mime_type().

 libbalsa/body.c                  | 2 +-
 libbalsa/gmime-multipart-crypt.c | 4 ++--
 libbalsa/message.c               | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libbalsa/body.c b/libbalsa/body.c
index e8d5c9b2a..1148afa97 100644
--- a/libbalsa/body.c
+++ b/libbalsa/body.c
@@ -166,7 +166,7 @@ libbalsa_message_body_set_types(LibBalsaMessageBody * body)
     else body->body_type = LIBBALSA_MESSAGE_BODY_TYPE_OTHER;
 
     g_free(body->content_type);
-    body->content_type = g_mime_content_type_to_string(type);
+    body->content_type = g_mime_content_type_get_mime_type(type);
 }
 
 static LibBalsaMessageBody **
diff --git a/libbalsa/gmime-multipart-crypt.c b/libbalsa/gmime-multipart-crypt.c
index af7301484..3db0e3d2a 100644
--- a/libbalsa/gmime-multipart-crypt.c
+++ b/libbalsa/gmime-multipart-crypt.c
@@ -258,7 +258,7 @@ g_mime_gpgme_mps_verify(GMimeMultipartSigned * mps, GError ** error)
                                  GMIME_MULTIPART_SIGNED_SIGNATURE);
 
     /* make sure the protocol matches the signature content-type */
-    content_type = g_mime_content_type_to_string(signature->content_type);
+    content_type = g_mime_content_type_get_mime_type(signature->content_type);
     if (g_ascii_strcasecmp(content_type, protocol) != 0) {
        g_set_error(error, GMIME_ERROR, GMIME_ERROR_PARSE_ERROR, "%s",
                    _
@@ -468,7 +468,7 @@ g_mime_gpgme_mpe_decrypt(GMimeMultipartEncrypted * mpe,
                                  GMIME_MULTIPART_ENCRYPTED_VERSION);
 
     /* make sure the protocol matches the version part's content-type */
-    content_type = g_mime_content_type_to_string(version->content_type);
+    content_type = g_mime_content_type_get_mime_type(version->content_type);
     if (g_ascii_strcasecmp(content_type, protocol) != 0) {
        g_set_error(err, GMIME_ERROR, GMIME_ERROR_PROTOCOL_ERROR, "%s",
                    _
diff --git a/libbalsa/message.c b/libbalsa/message.c
index cf4171316..887ed879e 100644
--- a/libbalsa/message.c
+++ b/libbalsa/message.c
@@ -1016,7 +1016,7 @@ lb_message_headers_basic_from_gmime(LibBalsaMessageHeaders *headers,
         gchar *str;
         g_return_if_fail(headers->content_type == NULL);
         content_type          = g_mime_object_get_content_type(mime_msg->mime_part);
-        str                   = g_mime_content_type_to_string(content_type);
+        str                   = g_mime_content_type_get_mime_type(content_type);
         headers->content_type = g_mime_content_type_new_from_string(str);
         g_free(str);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]