aboutsummaryrefslogtreecommitdiff
path: root/src/rfc2015.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-11-10 09:49:06 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-11-10 09:49:06 +0000
commit0b73715dd9b3033f2ce4e8698a5a1968a9e87646 (patch)
tree08a9f0ee3b0c9521eff68062e8a4f38632e37710 /src/rfc2015.c
parent9273d06df99648652b98adf86d7562811eb323b8 (diff)
hide PGP checkboxes if PGP is not available.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@734 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/rfc2015.c')
-rw-r--r--src/rfc2015.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/rfc2015.c b/src/rfc2015.c
index 21d48f9b..fc2ccfb7 100644
--- a/src/rfc2015.c
+++ b/src/rfc2015.c
@@ -51,6 +51,8 @@
#define DIM(v) (sizeof(v) / sizeof((v)[0]))
+static gboolean gpg_available = TRUE;
+
static gchar *content_names[] = {
"Content-Type",
"Content-Disposition",
@@ -106,8 +108,12 @@ static void dump_part(MimeInfo *mimeinfo, FILE *fp)
void rfc2015_disable_all(void)
{
- /* FIXME: set a flag, so that we don't bother the user with failed
- * gpgme messages */
+ gpg_available = FALSE;
+}
+
+gboolean rfc2015_is_available(void)
+{
+ return gpg_available;
}
void rfc2015_secure_remove(const gchar *fname)