changeset 18754:66df5d93cdf4

When a new user starts Pidgin we hide the buddy list so that they only see the account window to make it easier for them to create an account. But then once they create an account the buddy list stays minimized, which makes people think nothing is happening. This changes makes it so we unhide the buddy list when gtkaccount.c creates the first account.
author Mark Doliner <mark@kingant.net>
date Tue, 31 Jul 2007 06:09:45 +0000
parents 2cc872f4f620
children 84d53c3c699d
files pidgin/gtkaccount.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkaccount.c	Tue Jul 31 03:26:05 2007 +0000
+++ b/pidgin/gtkaccount.c	Tue Jul 31 06:09:45 2007 +0000
@@ -1162,6 +1162,11 @@
 	{
 		const char *screenname;
 
+		if (purple_accounts_get_all() == NULL) {
+			/* We're adding our first account.  Be polite and show the buddy list */
+			purple_blist_set_visible(TRUE);
+		}
+
 		screenname = gtk_entry_get_text(GTK_ENTRY(dialog->screenname_entry));
 		account = purple_account_new(screenname, dialog->protocol_id);
 		new = TRUE;