summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Cameron <brian.cameron@sun.com>2007-06-04 04:38:44 +0000
committerBrian Cameron <bcameron@src.gnome.org>2007-06-04 04:38:44 +0000
commit0b7cf9104b4d76477c41b5082a9f8a38a365e2f0 (patch)
tree3eb3432e7421e462e1232ee850f85cec585129f2
parent3ba50766948876a58deeff78b9de6fa88da59f23 (diff)
downloadgdm-0b7cf9104b4d76477c41b5082a9f8a38a365e2f0.tar.gz
Set invisible character to '*' if the configuration file doesn't specify
2007-06-04 Brian Cameron <brian.cameron@sun.com> * gui/gdmlogin.c: Set invisible character to '*' if the configuration file doesn't specify to use invisible or cirlces. Fixes bug #439089. Patch by Sebastien Bacher <seb128@debian.org>. svn path=/trunk/; revision=4954
-rw-r--r--ChangeLog7
-rw-r--r--gui/gdmlogin.c4
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index aeb28d3b..84b5cc4a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2007-06-04 Brian Cameron <brian.cameron@sun.com>
+ * gui/gdmlogin.c: Set invisible character to '*' if the
+ configuration file doesn't specify to use invisible or
+ cirlces. Fixes bug #439089. Patch by Sebastien Bacher
+ <seb128@debian.org>.
+
+2007-06-04 Brian Cameron <brian.cameron@sun.com>
+
* gui/gdmuser.c: Prune users out of the user list if their
shell is /sbin/nologin, /bin/true, or /bin/false. Patch
by Ray Strode <rstrode@redhat.com>. Fixes bug #438682.
diff --git a/gui/gdmlogin.c b/gui/gdmlogin.c
index 5902cba9..05bc745c 100644
--- a/gui/gdmlogin.c
+++ b/gui/gdmlogin.c
@@ -2579,10 +2579,14 @@ gdm_login_gui_init (void)
*/
g_signal_connect (G_OBJECT (entry), "key_release_event",
G_CALLBACK (key_release_event), NULL);
+
if (gdm_config_get_bool (GDM_KEY_ENTRY_INVISIBLE))
gtk_entry_set_invisible_char (GTK_ENTRY (entry), 0);
else if (gdm_config_get_bool (GDM_KEY_ENTRY_CIRCLES))
gtk_entry_set_invisible_char (GTK_ENTRY (entry), 0x25cf);
+ else
+ gtk_entry_set_invisible_char (GTK_ENTRY (entry), '*');
+
gtk_entry_set_max_length (GTK_ENTRY (entry), PW_ENTRY_SIZE);
gtk_widget_set_size_request (entry, 250, -1);
gtk_widget_ref (entry);