diff src/gtkrequest.c @ 11986:bfbb1798535e

[gaim-migrate @ 14279] Switch to using the unicode character 0x25cf instead of an asterisk as our password masking character. In the words of the great Christian Hammond, "By the way, isn't it about time we replace the asterisk in masked entries with that unicode character for the round filled circle ("?")? The asterisk is so 1980s." committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 05 Nov 2005 23:42:35 +0000
parents 8cb75ba77f9d
children 29dc8fc0dd6c
line wrap: on
line diff
--- a/src/gtkrequest.c	Sat Nov 05 21:49:44 2005 +0000
+++ b/src/gtkrequest.c	Sat Nov 05 23:42:35 2005 +0000
@@ -413,7 +413,10 @@
 				gtk_entry_set_text(GTK_ENTRY(entry), default_value);
 
 			if (masked)
+			{
 				gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE);
+				gtk_entry_set_invisible_char(GTK_ENTRY(entry), GAIM_INVISIBLE_CHAR);
+			}
 		}
 	}
 
@@ -1113,8 +1116,11 @@
 		if (value != NULL)
 			gtk_entry_set_text(GTK_ENTRY(widget), value);
 
-		gtk_entry_set_visibility(GTK_ENTRY(widget),
-			!gaim_request_field_string_is_masked(field));
+		if (gaim_request_field_string_is_masked(field))
+		{
+			gtk_entry_set_visibility(GTK_ENTRY(widget), FALSE);
+			gtk_entry_set_invisible_char(GTK_ENTRY(widget),	GAIM_INVISIBLE_CHAR);
+		}
 
 		gtk_editable_set_editable(GTK_EDITABLE(widget),
 			gaim_request_field_string_is_editable(field));