kov changed libgksu/trunk/ChangeLog,
libgksu/trunk/docs/tmpl/libgksu.sgml,
libgksu/trunk/libgksu/libgksu.c, libgksu/trunk/libgksu/libgksu.h
Gustavo Noronha
kov at costa.debian.org
Tue Oct 24 01:57:36 UTC 2006
Mensagem de log:
returns WRONGAUTOPASS instead of WRONGPASS when wrong password
is the one we got from the gnome keyring
-----
Modified: libgksu/trunk/ChangeLog
===================================================================
--- libgksu/trunk/ChangeLog 2006-10-24 01:48:44 UTC (rev 749)
+++ libgksu/trunk/ChangeLog 2006-10-24 01:57:36 UTC (rev 750)
@@ -4,6 +4,8 @@
- make sure the dialog is _destroyed_ instead of just being
hidden, after some action has been taken in the dialog that
asks for the password
+ - returns WRONGAUTOPASS instead of WRONGPASS when wrong password
+ is the one we got from the gnome keyring
2006-10-22 Gustavo Noronha Silva <kov at debian.org>
Modified: libgksu/trunk/docs/tmpl/libgksu.sgml
===================================================================
--- libgksu/trunk/docs/tmpl/libgksu.sgml 2006-10-24 01:48:44 UTC (rev 749)
+++ libgksu/trunk/docs/tmpl/libgksu.sgml 2006-10-24 01:57:36 UTC (rev 750)
@@ -35,6 +35,7 @@
@GKSU_ERROR_CHILDFAILED:
@GKSU_ERROR_NOT_ALLOWED:
@GKSU_ERROR_CANCELED:
+ at GKSU_ERROR_WRONGAUTOPASS:
<!-- ##### FUNCTION gksu_context_new ##### -->
<para>
Modified: libgksu/trunk/libgksu/libgksu.c
===================================================================
--- libgksu/trunk/libgksu/libgksu.c 2006-10-24 01:48:44 UTC (rev 749)
+++ libgksu/trunk/libgksu/libgksu.c 2006-10-24 01:57:36 UTC (rev 750)
@@ -68,6 +68,7 @@
{ GKSU_ERROR_WRONGPASS, "GKSU_ERROR_WRONGPASS", "wrongpass" },
{ GKSU_ERROR_CHILDFAILED, "GKSU_ERROR_CHILDFAILED", "childfailed" },
{ GKSU_ERROR_CANCELED, "GKSU_ERROR_CANCELED", "canceled" },
+ { GKSU_ERROR_WRONGAUTOPASS, "GKSU_ERROR_WRONGAUTOPASS", "wrongautopass" },
{ 0, NULL, NULL }
};
etype = g_enum_register_static ("GksuError", values);
@@ -1971,9 +1972,16 @@
strings = g_strsplit (buf, ":", 2);
if (strings[1] && !strncmp (strings[1], " Authentication failure", 23))
- g_set_error (error, gksu_quark,
- GKSU_ERROR_WRONGPASS,
- _("Wrong password."));
+ {
+ if (used_gnome_keyring)
+ g_set_error (error, gksu_quark,
+ GKSU_ERROR_WRONGAUTOPASS,
+ _("Wrong password got from keyring."));
+ else
+ g_set_error (error, gksu_quark,
+ GKSU_ERROR_WRONGPASS,
+ _("Wrong password."));
+ }
g_strfreev (strings);
if (context->debug)
Modified: libgksu/trunk/libgksu/libgksu.h
===================================================================
--- libgksu/trunk/libgksu/libgksu.h 2006-10-24 01:48:44 UTC (rev 749)
+++ libgksu/trunk/libgksu/libgksu.h 2006-10-24 01:57:36 UTC (rev 750)
@@ -80,7 +80,8 @@
GKSU_ERROR_WRONGPASS,
GKSU_ERROR_CHILDFAILED,
GKSU_ERROR_NOT_ALLOWED,
- GKSU_ERROR_CANCELED
+ GKSU_ERROR_CANCELED,
+ GKSU_ERROR_WRONGAUTOPASS
} GksuError;
typedef
More information about the gksu-commits
mailing list