changeset 5925:6690934e5ea6

[gaim-migrate @ 6365] fix my breaking of right-clicking on anything but chats in the buddy list also make certain fields (passwords) for the in-blist chats not show up in the tooltip committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 20 Jun 2003 03:41:15 +0000
parents c304abc3e68b
children 6c22d37c6a3c
files src/dialogs.c src/multi.h src/protocols/irc/irc.c
diffstat 3 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/dialogs.c	Fri Jun 20 03:32:42 2003 +0000
+++ b/src/dialogs.c	Fri Jun 20 03:41:15 2003 +0000
@@ -1147,6 +1147,9 @@
 				focus = FALSE;
 			}
 
+			if(pce->secret)
+				gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE);
+
 			gtk_box_pack_end(GTK_BOX(rowbox), entry, TRUE, TRUE, 0);
 
 			g_signal_connect(G_OBJECT(entry), "activate",
--- a/src/multi.h	Fri Jun 20 03:32:42 2003 +0000
+++ b/src/multi.h	Fri Jun 20 03:41:15 2003 +0000
@@ -44,6 +44,7 @@
 	gboolean is_int;
 	int min;
 	int max;
+	gboolean secret;
 };
 
 #endif /* _MULTI_H_ */
--- a/src/protocols/irc/irc.c	Fri Jun 20 03:32:42 2003 +0000
+++ b/src/protocols/irc/irc.c	Fri Jun 20 03:41:15 2003 +0000
@@ -2475,6 +2475,7 @@
 	pce = g_new0(struct proto_chat_entry, 1);
 	pce->label = _("Password:");
 	pce->identifier = "password";
+	pce->secret = TRUE;
 	m = g_list_append(m, pce);
 
 	return m;