diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-08-07 05:48:45 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-08-07 08:00:49 +0800 |
commit | 052e89dd423b5ba2f394f55c2fcc48102e7b9bc3 (patch) | |
tree | 1e619c123276e604996423df38a2bffafd28b633 /e-util/e-signature-utils.c | |
parent | 6a2b0904893199ceb5b291405721845fd17a08db (diff) | |
download | gsoc2013-evolution-052e89dd423b5ba2f394f55c2fcc48102e7b9bc3.tar.gz gsoc2013-evolution-052e89dd423b5ba2f394f55c2fcc48102e7b9bc3.tar.zst gsoc2013-evolution-052e89dd423b5ba2f394f55c2fcc48102e7b9bc3.zip |
Seal up ESignature and add GObject properties.
Diffstat (limited to 'e-util/e-signature-utils.c')
-rw-r--r-- | e-util/e-signature-utils.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/e-util/e-signature-utils.c b/e-util/e-signature-utils.c index 1321fc59e1..4ae5ac2c8f 100644 --- a/e-util/e-signature-utils.c +++ b/e-util/e-signature-utils.c @@ -153,25 +153,29 @@ e_read_signature_file (ESignature *signature, CamelStream *input_stream; CamelStream *output_stream; GByteArray *buffer; + const gchar *filename; + gboolean is_html; gchar *content; gsize length; gint fd; g_return_val_if_fail (E_IS_SIGNATURE (signature), NULL); - fd = g_open (signature->filename, O_RDONLY, 0); + filename = e_signature_get_filename (signature); + is_html = e_signature_get_is_html (signature); + + fd = g_open (filename, O_RDONLY, 0); if (fd < 0) { g_set_error ( error, G_FILE_ERROR, g_file_error_from_errno (errno), - "%s: %s", signature->filename, - g_strerror (errno)); + "%s: %s", filename, g_strerror (errno)); return NULL; } input_stream = camel_stream_fs_new_with_fd (fd); - if (!signature->html && convert_to_html) { + if (!is_html && convert_to_html) { CamelStreamFilter *filtered_stream; CamelMimeFilter *filter; gint32 flags; |