[seahorse] Error windows after the third wrong pasword is displayed now.
- From: Adam Schreiber <sadam src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [seahorse] Error windows after the third wrong pasword is displayed now.
- Date: Sun, 7 Feb 2010 20:02:23 +0000 (UTC)
commit 8e37fabd89fcfd3fe0f267e2cc5d9563d2365aa7
Author: Thorsten Sick <thorsten sick email de>
Date: Sat Aug 22 22:02:48 2009 +0200
Error windows after the third wrong pasword is displayed now.
pgp/seahorse-gpgme-key-op.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/pgp/seahorse-gpgme-key-op.c b/pgp/seahorse-gpgme-key-op.c
index 8b55548..2af08f1 100644
--- a/pgp/seahorse-gpgme-key-op.c
+++ b/pgp/seahorse-gpgme-key-op.c
@@ -29,6 +29,7 @@
#include <unistd.h>
#include <glib/gstdio.h>
+#include <glib/gi18n.h>
#include "seahorse-util.h"
#include "seahorse-libdialogs.h"
@@ -294,6 +295,10 @@ edit_gpgme_key (gpgme_ctx_t ctx, gpgme_key_t key, SeahorseEditParm *parms)
/* do edit callback, release data */
gerr = gpgme_op_edit (ctx, key, seahorse_gpgme_key_op_edit, parms, out);
+
+ if (gpgme_err_code (gerr) == GPG_ERR_CANCELED) {
+ seahorse_util_show_error(NULL, _("Wrong password"), _("This was the third time you entered a wrong password. Please try again."));
+ }
seahorse_gpgme_data_release (out);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]