aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-08-11 06:20:12 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-08-11 06:53:31 +0800
commit489ec676aa3cefbbd31a307dfcf49b42142e28f1 (patch)
tree3005ee6a495c724a62e57f1711c0ca075a86274c
parent699e36491b564069bce8c36a79d4803b5d9492d1 (diff)
downloadgsoc2013-evolution-489ec676aa3cefbbd31a307dfcf49b42142e28f1.tar
gsoc2013-evolution-489ec676aa3cefbbd31a307dfcf49b42142e28f1.tar.gz
gsoc2013-evolution-489ec676aa3cefbbd31a307dfcf49b42142e28f1.tar.bz2
gsoc2013-evolution-489ec676aa3cefbbd31a307dfcf49b42142e28f1.tar.lz
gsoc2013-evolution-489ec676aa3cefbbd31a307dfcf49b42142e28f1.tar.xz
gsoc2013-evolution-489ec676aa3cefbbd31a307dfcf49b42142e28f1.tar.zst
gsoc2013-evolution-489ec676aa3cefbbd31a307dfcf49b42142e28f1.zip
More EMFormat cleanups.
-rw-r--r--em-format/em-format.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/em-format/em-format.c b/em-format/em-format.c
index 8b3d069e2e..67ed912d50 100644
--- a/em-format/em-format.c
+++ b/em-format/em-format.c
@@ -42,6 +42,8 @@
#define d(x)
+typedef struct _EMFormatCache EMFormatCache;
+
struct _EMFormatPrivate {
guint redraw_idle_id;
};
@@ -75,7 +77,7 @@ static gpointer parent_class;
static guint signals[EMF_LAST_SIGNAL];
static void
-emf_free_cache(struct _EMFormatCache *efc)
+emf_free_cache(EMFormatCache *efc)
{
if (efc->valid)
camel_cipher_validity_free(efc->valid);
@@ -84,10 +86,10 @@ emf_free_cache(struct _EMFormatCache *efc)
g_free(efc);
}
-static struct _EMFormatCache *
+static EMFormatCache *
emf_insert_cache(EMFormat *emf, const gchar *partid)
{
- struct _EMFormatCache *new;
+ EMFormatCache *new;
new = g_malloc0(sizeof(*new)+strlen(partid));
strcpy(new->partid, partid);
@@ -99,7 +101,7 @@ emf_insert_cache(EMFormat *emf, const gchar *partid)
static void
emf_clone_inlines (gpointer key, gpointer val, gpointer data)
{
- struct _EMFormatCache *emfc = val, *new;
+ EMFormatCache *emfc = val, *new;
new = emf_insert_cache((EMFormat *)data, emfc->partid);
new->state = emfc->state;
@@ -257,7 +259,7 @@ emf_is_inline (EMFormat *emf,
CamelMimePart *mime_part,
const EMFormatHandler *handle)
{
- struct _EMFormatCache *emfc;
+ EMFormatCache *emfc;
const gchar *disposition;
if (handle == NULL)
@@ -1161,7 +1163,7 @@ em_format_set_inline (EMFormat *emf,
const gchar *part_id,
gint state)
{
- struct _EMFormatCache *emfc;
+ EMFormatCache *emfc;
g_return_if_fail (EM_IS_FORMAT (emf));
g_return_if_fail (part_id != NULL);
@@ -1447,7 +1449,7 @@ emf_application_xpkcs7mime (EMFormat *emf,
CamelCipherContext *context;
CamelMimePart *opart;
CamelCipherValidity *valid;
- struct _EMFormatCache *emfc;
+ EMFormatCache *emfc;
GError *local_error = NULL;
/* should this perhaps run off a key of ".secured" ? */
@@ -1610,7 +1612,7 @@ emf_multipart_encrypted (EMFormat *emf,
CamelMimePart *opart;
CamelCipherValidity *valid;
CamelMultipartEncrypted *mpe;
- struct _EMFormatCache *emfc;
+ EMFormatCache *emfc;
GError *local_error = NULL;
/* should this perhaps run off a key of ".secured" ? */
@@ -1786,7 +1788,7 @@ emf_multipart_signed (EMFormat *emf,
CamelMimePart *cpart;
CamelMultipartSigned *mps;
CamelCipherContext *cipher = NULL;
- struct _EMFormatCache *emfc;
+ EMFormatCache *emfc;
/* should this perhaps run off a key of ".secured" ? */
emfc = g_hash_table_lookup(emf->inline_table, emf->part_id->str);