diff options
author | Srinivasa Ragavan <sragavan@gnome.org> | 2009-12-08 04:11:38 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@gnome.org> | 2009-12-23 17:12:59 +0800 |
commit | fc8dc2474880c11a3556ef7fc97d3712fc6cbcf9 (patch) | |
tree | 8e65cf9bdc27f97909244121804631181e7cea01 /mail/em-account-editor.c | |
parent | a172618f52e0c7b72ada2ea830bbe6c49818b951 (diff) | |
download | gsoc2013-evolution-fc8dc2474880c11a3556ef7fc97d3712fc6cbcf9.tar.gz gsoc2013-evolution-fc8dc2474880c11a3556ef7fc97d3712fc6cbcf9.tar.zst gsoc2013-evolution-fc8dc2474880c11a3556ef7fc97d3712fc6cbcf9.zip |
Add 'Defaults' page to Anjal's edit stuff. Prevent it coming in
Evolution's account druid if the type is assistant.
Diffstat (limited to 'mail/em-account-editor.c')
-rw-r--r-- | 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 a120752ddc..ff481ea770 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 }, |