[anjal] Start wizard on Anjal start up, if no accounts found.



commit 2b1c809df576e10f3f6081a10ccc545558619403
Author: Srinivasa Ragavan <sragavan novell com>
Date:   Wed Apr 29 18:08:27 2009 +0530

    Start wizard on Anjal start up, if no accounts found.
---
 src/mail-shell.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/mail-shell.c b/src/mail-shell.c
index 5e24fc0..57b0f7b 100644
--- a/src/mail-shell.c
+++ b/src/mail-shell.c
@@ -345,7 +345,7 @@ mail_shell_construct (MailShell *shell)
 	
 	gtk_container_add ((GtkContainer *)shell, priv->box);
 	
-	printf("NEW Setup ? %d\n", ms_check_new());
+
 	shell->mail_component = mail_component_create (shell, FALSE);
 	priv->side_pane = gtk_hpaned_new ();
 	tmp = gtk_vpaned_new ();
@@ -400,6 +400,11 @@ mail_shell_construct (MailShell *shell)
 	mail_view_set_slider (shell->mail_component->mail_view, priv->slider);
 	mail_view_set_sort_by (shell->mail_component->mail_view, priv->sort);
 	mail_view_set_check_email (shell->mail_component->mail_view, priv->check_mail);
+
+	if (ms_check_new()) {
+		gtk_widget_hide (((MailView *) shell->mail_component->mail_view)->folder_tree);
+		mail_view_add_page (shell->mail_component->mail_view, MAIL_VIEW_ACCOUNT);
+	}
 }
 
 MailShell *



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]