diff options
author | Guido Günther <agx@sigxcpu.org> | 2009-04-24 11:28:49 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2009-04-24 11:28:49 +0200 |
commit | 9d5cdf24ef40097737cdb3ecd2ac1331653b471f (patch) | |
tree | 2df5ea1d5ce717daac6c6b3bf4f071ba3e43b5f2 /src/krb5-auth-pwdialog.c | |
parent | Imported Upstream version 0.9~rc1 (diff) | |
download | krb5-auth-dialog-9d5cdf24ef40097737cdb3ecd2ac1331653b471f.tar.gz krb5-auth-dialog-9d5cdf24ef40097737cdb3ecd2ac1331653b471f.tar.bz2 krb5-auth-dialog-9d5cdf24ef40097737cdb3ecd2ac1331653b471f.zip |
Imported Upstream version 0.9+0gitec60300
Diffstat (limited to 'src/krb5-auth-pwdialog.c')
-rw-r--r-- | src/krb5-auth-pwdialog.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/krb5-auth-pwdialog.c b/src/krb5-auth-pwdialog.c index 7873a8a..b3ed068 100644 --- a/src/krb5-auth-pwdialog.c +++ b/src/krb5-auth-pwdialog.c @@ -191,11 +191,12 @@ ka_pwdialog_setup (KaPwDialog* pwdialog, const gchar *krb5prompt, { KaPwDialogPrivate *priv = pwdialog->priv; gchar *wrong_markup = NULL; + GtkWidget *e; gchar *prompt; int pw4len; if (krb5prompt == NULL) { - prompt = g_strdup (_("Please enter your Kerberos password.")); + prompt = g_strdup (_("Please enter your Kerberos password:")); } else { /* Kerberos's prompts are a mess, and basically impossible to * translate. There's basically no way short of doing a lot of @@ -206,12 +207,17 @@ ka_pwdialog_setup (KaPwDialog* pwdialog, const gchar *krb5prompt, pw4len = strlen ("Password for "); if (strncmp (krb5prompt, "Password for ", pw4len) == 0) { gchar *uid = (gchar *) (krb5prompt + pw4len); - prompt = g_strdup_printf (_("Please enter the password for '%s'"), uid); + prompt = g_strdup_printf (_("Please enter the password for '%s':"), uid); } else { prompt = g_strdup (krb5prompt); } } + e = gtk_entry_new (); + gtk_secure_entry_set_invisible_char (GTK_SECURE_ENTRY (priv->pw_entry), + gtk_entry_get_invisible_char (GTK_ENTRY (e))); + gtk_widget_destroy (e); + /* Clear the password entry field */ gtk_secure_entry_set_text (GTK_SECURE_ENTRY (priv->pw_entry), ""); |