[evolution/anjal-evo-2-30] Add 'Defaults' page to Anjal's edit stuff. Prevent it coming in



commit 7dba05f32019e3dcb5de750a5e2885ea2ad35c03
Author: Srinivasa Ragavan <sragavan gnome org>
Date:   Tue Dec 8 01:41:38 2009 +0530

    Add 'Defaults' page to Anjal's edit stuff. Prevent it coming in
    Evolution's account druid if the type is assistant.

 mail/em-account-editor.c |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index 9226b49..2b6b65b 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -2697,6 +2697,8 @@ emae_defaults_page (EConfig *ec, EConfigItem *item, GtkWidget *parent, GtkWidget
 
 	/*if (old)
 	  return old;*/
+	if (((EConfig *)priv->config)->type == E_CONFIG_ASSISTANT)
+		return NULL;
 
 	account = em_account_editor_get_modified_account (emae);
 
@@ -2734,8 +2736,12 @@ emae_defaults_page (EConfig *ec, EConfigItem *item, GtkWidget *parent, GtkWidget
 	emae_setup_receipt_policy (emae, builder);
 
 	w = e_builder_get_widget (builder, item->label);
-	gtk_notebook_append_page ((GtkNotebook *)parent, w, gtk_label_new (_("Defaults")));
-
+	if (emae->type == EMAE_PAGES) {
+		gtk_box_pack_start ((GtkBox *)emae->pages[4], w, TRUE, TRUE, 0);
+		gtk_widget_show  (w);
+	}else {
+		gtk_notebook_append_page ((GtkNotebook *)parent, w, gtk_label_new (_("Defaults")));
+	}
 	emae_queue_widgets (emae, builder, "vbox184", "table8", NULL);
 
 	g_object_unref (builder);
@@ -2911,6 +2917,10 @@ static EMConfigItem emae_assistant_items[] = {
 	{ E_CONFIG_SECTION, (gchar *) "30.send/20.security", (gchar *) "vbox183", emae_widget_glade },
 	{ E_CONFIG_SECTION, (gchar *) "30.send/30.auth", (gchar *) "vbox61", emae_widget_glade },
 
+	{ E_CONFIG_PAGE, (gchar *) "40.defaults", (gchar *) "vboxFoldersBorder", emae_defaults_page },
+	{ E_CONFIG_SECTION, (gchar *) "40.defaults/00.folders", (gchar *) "vbox184", emae_widget_glade },
+	{ E_CONFIG_SECTION_TABLE, (gchar *) "40.defaults/10.composing", (gchar *) "table8", emae_widget_glade },
+
 	{ E_CONFIG_PAGE, (gchar *) "40.management", (gchar *) "management_frame", emae_management_page },
 
 	{ E_CONFIG_PAGE_FINISH, (gchar *) "999.end", (gchar *) "finish_page", emae_widget_assistant_page },



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