diff src/gtkpluginpref.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 a511b77a368b
children 8ae981f2c9cb
line wrap: on
line diff
--- a/src/gtkpluginpref.c	Sat Nov 05 21:49:44 2005 +0000
+++ b/src/gtkpluginpref.c	Sat Nov 05 23:42:35 2005 +0000
@@ -81,8 +81,11 @@
 			gtk_entry_set_text(GTK_ENTRY(entry), gaim_prefs_get_string(pref_name));
 			gtk_entry_set_max_length(GTK_ENTRY(entry),
 									 gaim_plugin_pref_get_max_length(pref));
-			gtk_entry_set_visibility(GTK_ENTRY(entry),
-									 !gaim_plugin_pref_get_masked(pref));
+			if (gaim_plugin_pref_get_masked(pref))
+			{
+				gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE);
+				gtk_entry_set_invisible_char(GTK_ENTRY(entry), GAIM_INVISIBLE_CHAR);
+			}
 			g_signal_connect(G_OBJECT(entry), "changed",
 							 G_CALLBACK(entry_cb),
 							 (gpointer)pref_name);