[krb5-auth-dialog] query current invisiable char from GtkEntry
- From: Guido Günther <guidog src gnome org>
- To: svn-commits-list gnome org
- Subject: [krb5-auth-dialog] query current invisiable char from GtkEntry
- Date: Fri, 24 Apr 2009 04:54:33 -0400 (EDT)
commit ec60300c9c273d1110f067393bfcc81d305899a9
Author: Guido Günther <agx sigxcpu org>
Date: Fri Apr 24 10:42:21 2009 +0200
query current invisiable char from GtkEntry
and set it for GtkSecureEntry too. Patch by Matthias Clasen.
---
ChangeLog | 6 ++++++
src/krb5-auth-pwdialog.c | 6 ++++++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2d35057..fc49cf3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Fri Apr 24 10:48:30 CEST 2009 Guido Günther <agx sigxcpu org>
+
+ * src/krb5-auth-pwdialog.c: query current invisiable char from
+ GtkEntry and set it for GtkSecureEntry too. Patch by Matthias Clasen.
+ (BZ: #538339)
+
Fri Apr 24 10:46:20 CEST 2009 Guido Günther <agx sigxcpu org>
* gtksecentry/gtksecentry.c: don't install "gtk-entry-select-on-focus"
diff --git a/src/krb5-auth-pwdialog.c b/src/krb5-auth-pwdialog.c
index c5c02a9..b3ed068 100644
--- a/src/krb5-auth-pwdialog.c
+++ b/src/krb5-auth-pwdialog.c
@@ -191,6 +191,7 @@ ka_pwdialog_setup (KaPwDialog* pwdialog, const gchar *krb5prompt,
{
KaPwDialogPrivate *priv = pwdialog->priv;
gchar *wrong_markup = NULL;
+ GtkWidget *e;
gchar *prompt;
int pw4len;
@@ -212,6 +213,11 @@ ka_pwdialog_setup (KaPwDialog* pwdialog, const gchar *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), "");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]