From 052e89dd423b5ba2f394f55c2fcc48102e7b9bc3 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 6 Aug 2009 17:48:45 -0400 Subject: Seal up ESignature and add GObject properties. --- e-util/e-signature-utils.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'e-util/e-signature-utils.c') 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; -- cgit v1.2.3