aboutsummaryrefslogtreecommitdiffstats
path: root/em-format
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-05-19 22:05:13 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-05-20 01:07:21 +0800
commit42d1e89f02e6a50f4957a4d3b9cdc3f2b49c2852 (patch)
tree3e818334a9fdf8dbbfa6cc4d6b72359d4fa7cf52 /em-format
parentca09edf8fa5f24cbc2a29989d8ba1dca5e004da2 (diff)
downloadgsoc2013-evolution-42d1e89f02e6a50f4957a4d3b9cdc3f2b49c2852.tar
gsoc2013-evolution-42d1e89f02e6a50f4957a4d3b9cdc3f2b49c2852.tar.gz
gsoc2013-evolution-42d1e89f02e6a50f4957a4d3b9cdc3f2b49c2852.tar.bz2
gsoc2013-evolution-42d1e89f02e6a50f4957a4d3b9cdc3f2b49c2852.tar.lz
gsoc2013-evolution-42d1e89f02e6a50f4957a4d3b9cdc3f2b49c2852.tar.xz
gsoc2013-evolution-42d1e89f02e6a50f4957a4d3b9cdc3f2b49c2852.tar.zst
gsoc2013-evolution-42d1e89f02e6a50f4957a4d3b9cdc3f2b49c2852.zip
Add e_mail_part_set_is_attachment().
Diffstat (limited to 'em-format')
-rw-r--r--em-format/e-mail-part.c9
-rw-r--r--em-format/e-mail-part.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/em-format/e-mail-part.c b/em-format/e-mail-part.c
index 6c1ee969f5..b7e4d67d34 100644
--- a/em-format/e-mail-part.c
+++ b/em-format/e-mail-part.c
@@ -275,6 +275,15 @@ e_mail_part_get_is_attachment (EMailPart *part)
return part->is_attachment;
}
+void
+e_mail_part_set_is_attachment (EMailPart *part,
+ gboolean is_attachment)
+{
+ g_return_if_fail (part != NULL);
+
+ part->is_attachment = is_attachment;
+}
+
static EMailPartValidityPair *
mail_part_find_validity_pair (EMailPart *part,
guint32 validity_type)
diff --git a/em-format/e-mail-part.h b/em-format/e-mail-part.h
index e4a83753a9..19e62ac1cb 100644
--- a/em-format/e-mail-part.h
+++ b/em-format/e-mail-part.h
@@ -110,6 +110,8 @@ const gchar * e_mail_part_get_mime_type (EMailPart *part);
void e_mail_part_set_mime_type (EMailPart *part,
const gchar *mime_type);
gboolean e_mail_part_get_is_attachment (EMailPart *part);
+void e_mail_part_set_is_attachment (EMailPart *part,
+ gboolean is_attachment);
void e_mail_part_update_validity (EMailPart *part,
CamelCipherValidity *validity,
guint32 validity_type);