diff src/gtkaccount.c @ 10658:61930cadca7c

[gaim-migrate @ 12190] sf patch #1108846, from Richard Laager This patch allows one to create protocol plugin options which are masked. This is useful for storing passwords, etc. This patch implements functions similar to the masking functions for general plugin preferences. I'm submitting this for inclusion in Gaim because I've written a plugin which hides the NickServ or Q (for QuakeNet) authentication details from the user. It makes IRC feel more like the other protocols in Gaim. I'd like to have the passwords masked in the preferences to match other password fields in Gaim. This is the only change to Gaim I need for my plugin to work. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 06 Mar 2005 06:14:26 +0000
parents 3353656c119e
children ad57a8b5495e
line wrap: on
line diff
--- a/src/gtkaccount.c	Sun Mar 06 02:23:03 2005 +0000
+++ b/src/gtkaccount.c	Sun Mar 06 06:14:26 2005 +0000
@@ -1019,6 +1019,8 @@
 				}
 
 				entry = gtk_entry_new();
+				if (gaim_account_option_get_masked(option))
+					gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE);
 
 				if (str_value != NULL)
 					gtk_entry_set_text(GTK_ENTRY(entry), str_value);