[balsa/gmime3: 14/49] g_mime_part_set_content_object() has been renamed



commit d077463d3a3913a7f3bcc09bcde6f2260cad79ce
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Thu Nov 21 14:58:28 2019 -0800

    g_mime_part_set_content_object() has been renamed
    
    to g_mime_part_set_content().
    
    modified:   libbalsa/gmime-application-pkcs7.c
    modified:   libbalsa/gmime-multipart-crypt.c
    modified:   libbalsa/gmime-part-rfc2440.c
    modified:   libbalsa/send.c

 libbalsa/gmime-application-pkcs7.c | 2 +-
 libbalsa/gmime-multipart-crypt.c   | 6 +++---
 libbalsa/gmime-part-rfc2440.c      | 6 +++---
 libbalsa/send.c                    | 8 ++++----
 4 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/libbalsa/gmime-application-pkcs7.c b/libbalsa/gmime-application-pkcs7.c
index 5fa6828c5..662fc135d 100644
--- a/libbalsa/gmime-application-pkcs7.c
+++ b/libbalsa/gmime-application-pkcs7.c
@@ -177,7 +177,7 @@ g_mime_application_pkcs7_encrypt(GMimePart * pkcs7, GMimeObject * content,
     wrapper = g_mime_data_wrapper_new();
     g_mime_data_wrapper_set_stream(wrapper, ciphertext);
     g_object_unref(ciphertext);
-    g_mime_part_set_content_object(GMIME_PART(pkcs7), wrapper);
+    g_mime_part_set_content(GMIME_PART(pkcs7), wrapper);
     g_mime_part_set_filename(GMIME_PART(pkcs7), "smime.p7m");
     g_mime_part_set_content_encoding(GMIME_PART(pkcs7),
                                     GMIME_CONTENT_ENCODING_BASE64);
diff --git a/libbalsa/gmime-multipart-crypt.c b/libbalsa/gmime-multipart-crypt.c
index 4f1cd4a94..25cc72c3b 100644
--- a/libbalsa/gmime-multipart-crypt.c
+++ b/libbalsa/gmime-multipart-crypt.c
@@ -181,7 +181,7 @@ g_mime_gpgme_mps_sign(GMimeMultipartSigned * mps, GMimeObject * content,
 
     wrapper = g_mime_data_wrapper_new();
     g_mime_data_wrapper_set_stream(wrapper, sigstream);
-    g_mime_part_set_content_object(signature, wrapper);
+    g_mime_part_set_content(signature, wrapper);
     g_object_unref(sigstream);
     g_object_unref(wrapper);
 
@@ -364,7 +364,7 @@ g_mime_gpgme_mpe_encrypt(GMimeMultipartEncrypted * mpe,
     wrapper =
        g_mime_data_wrapper_new_with_stream(stream,
                                            GMIME_CONTENT_ENCODING_7BIT);
-    g_mime_part_set_content_object(version_part, wrapper);
+    g_mime_part_set_content(version_part, wrapper);
     g_object_unref(wrapper);
     g_object_unref(stream);
 
@@ -376,7 +376,7 @@ g_mime_gpgme_mpe_encrypt(GMimeMultipartEncrypted * mpe,
     wrapper =
        g_mime_data_wrapper_new_with_stream(ciphertext,
                                            GMIME_CONTENT_ENCODING_7BIT);
-    g_mime_part_set_content_object(encrypted_part, wrapper);
+    g_mime_part_set_content(encrypted_part, wrapper);
     g_object_unref(ciphertext);
     g_object_unref(wrapper);
 
diff --git a/libbalsa/gmime-part-rfc2440.c b/libbalsa/gmime-part-rfc2440.c
index 4351e19df..3ced50118 100644
--- a/libbalsa/gmime-part-rfc2440.c
+++ b/libbalsa/gmime-part-rfc2440.c
@@ -221,7 +221,7 @@ g_mime_part_rfc2440_sign_encrypt(GMimePart * part, const char *sign_userid,
                                                 "charset", "US-ASCII");
     }
 
-    g_mime_part_set_content_object(part, wrapper);
+    g_mime_part_set_content(part, wrapper);
     g_object_unref(cipherstream);
     g_object_unref(wrapper);
 
@@ -270,7 +270,7 @@ g_mime_part_rfc2440_verify(GMimePart * part, GError ** err)
     if (result && g_mime_stream_length(plainstream) > 0) {
        wrapper = g_mime_data_wrapper_new();
        g_mime_data_wrapper_set_stream(wrapper, plainstream);
-       g_mime_part_set_content_object(GMIME_PART(part), wrapper);
+       g_mime_part_set_content(GMIME_PART(part), wrapper);
        g_object_unref(wrapper);
     }
     g_object_unref(plainstream);
@@ -340,7 +340,7 @@ g_mime_part_rfc2440_decrypt(GMimePart * part, GtkWindow * parent,
        out_stream = g_mime_stream_mem_new();
        wrapper = g_mime_data_wrapper_new();
        g_mime_data_wrapper_set_stream(wrapper, out_stream);
-       g_mime_part_set_content_object(part, wrapper);
+       g_mime_part_set_content(part, wrapper);
         g_object_unref(wrapper);
        g_mime_stream_reset(filter_stream);
        g_mime_stream_write_to_stream(filter_stream, out_stream);
diff --git a/libbalsa/send.c b/libbalsa/send.c
index 88bf113fb..7a4be6784 100644
--- a/libbalsa/send.c
+++ b/libbalsa/send.c
@@ -270,7 +270,7 @@ lbs_set_content(GMimePart *mime_part,
                                             GMIME_CONTENT_ENCODING_DEFAULT);
     g_object_unref(stream);
 
-    g_mime_part_set_content_object(mime_part, wrapper);
+    g_mime_part_set_content(mime_part, wrapper);
     g_object_unref(wrapper);
 }
 
@@ -341,7 +341,7 @@ add_mime_body_plain(LibBalsaMessageBody     *body,
                                                 GMIME_CONTENT_ENCODING_DEFAULT);
         g_object_unref(stream);
 
-        g_mime_part_set_content_object(mime_part, wrapper);
+        g_mime_part_set_content(mime_part, wrapper);
         g_object_unref(wrapper);
     } else {
         lbs_set_content(mime_part, body->buffer);
@@ -1400,7 +1400,7 @@ libbalsa_message_create_mime_message(LibBalsaMessage *message,
                 content = g_mime_data_wrapper_new_with_stream(stream,
                                                               GMIME_CONTENT_ENCODING_DEFAULT);
                 g_object_unref(stream);
-                g_mime_part_set_content_object(GMIME_PART(mime_part),
+                g_mime_part_set_content(GMIME_PART(mime_part),
                                                content);
                 g_object_unref(content);
             }
@@ -1832,7 +1832,7 @@ lb_create_pubkey_part(LibBalsaMessage  *message,
            wrapper = g_mime_data_wrapper_new();
            g_mime_data_wrapper_set_stream(wrapper, stream);
            g_object_unref(stream);
-           g_mime_part_set_content_object(mime_part, wrapper);
+           g_mime_part_set_content(mime_part, wrapper);
            g_object_unref(wrapper);
        }
 


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