diff src/gtkrequest.c @ 6035:8c44020a958e

[gaim-migrate @ 6485] gaim_request_input() now takes a masked bool, which, if enabled, masks the text on the entry field so that it cannot be seen. Good for password input requests, and what do you know, that's why this is written! committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 05 Jul 2003 21:54:19 +0000
parents 059d95c67cda
children 0922bb7a7bbc
line wrap: on
line diff
--- a/src/gtkrequest.c	Sat Jul 05 20:52:43 2003 +0000
+++ b/src/gtkrequest.c	Sat Jul 05 21:54:19 2003 +0000
@@ -180,7 +180,7 @@
 void *
 gaim_gtk_request_input(const char *title, const char *primary,
 					   const char *secondary, const char *default_value,
-					   gboolean multiline,
+					   gboolean multiline, gboolean masked,
 					   const char *ok_text, GCallback ok_cb,
 					   const char *cancel_text, GCallback cancel_cb,
 					   void *user_data)
@@ -288,6 +288,9 @@
 
 		if (default_value != NULL)
 			gtk_entry_set_text(GTK_ENTRY(entry), default_value);
+
+		if (masked)
+			gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE);
 	}
 
 	data->u.input.entry = entry;