[evolution] Add 'Defaults' page to Anjal's edit stuff. Prevent it coming in Evolution's account druid if the typ



commit fc8dc2474880c11a3556ef7fc97d3712fc6cbcf9
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 a120752..ff481ea 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -2704,6 +2704,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);
 
@@ -2741,8 +2743,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);
@@ -2918,6 +2924,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]