From b064051f5ff3c148c54c9fc11efc6078fea8157c Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 4 Apr 2002 20:02:48 +0000 Subject: Make the drafts and sent folder buttons be EvolutionFolderSelectorButtons. * mail-account-gui.c (mail_account_gui_new): Make the drafts and sent folder buttons be EvolutionFolderSelectorButtons. Remove the code to deal with drafts_folder_name and sent_folder_name, since they were only used to construct the button and aren't needed now. (mail_account_gui_save): Remove drafts/sent name references. (mail_account_gui_destroy): Likewise (folder_selected): Handle the "selected" signal on the folder selector button by updating the URI in the MailAccountGui. (mail_account_gui_folder_selector_button_new): Glade custom widget constructor. * mail-callbacks.c (transfer_msg): Update for evolution_shell_client_user_select_folder change. * message-browser.c (transfer_msg): Likewise. (Sigh. Why is this cut+pasted?) * mail-config.glade: Make the drafts/sent folder buttons custom widgets. * mail-config.c (account_copy): Remove drafts/sent folder name handling. (account_destroy): Likewise. (config_read): Likewise. (mail_config_write): Likewise. * Mail.idl (MailConfig:Account): remove drafts_folder_name and sent_folder_name. svn path=/trunk/; revision=16353 --- mail/mail-account-gui.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'mail/mail-account-gui.h') diff --git a/mail/mail-account-gui.h b/mail/mail-account-gui.h index b62d9a1966..6a6735bf48 100644 --- a/mail/mail-account-gui.h +++ b/mail/mail-account-gui.h @@ -57,10 +57,6 @@ typedef struct { CamelProviderType provider_type; } MailAccountGuiService; -typedef struct { - char *name, *uri; -} MailAccountGuiFolder; - typedef struct { GtkWidget *top; MailConfigAccount *account; @@ -102,9 +98,9 @@ typedef struct { /* special folders */ GtkButton *drafts_folder_button; - MailAccountGuiFolder drafts_folder; + char *drafts_folder_uri; GtkButton *sent_folder_button; - MailAccountGuiFolder sent_folder; + char *sent_folder_uri; /* always cc/bcc */ GtkToggleButton *always_cc; -- cgit v1.2.3