From a06e4484b8df804124b5bcf88d94dec5acfba270 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 6 Oct 2010 23:38:52 -0400 Subject: Give MailSession a permanent home. Global variables in shared libraries are a bad idea. EMailBackend now owns the MailSession instance, which is actually now EMailSession. Move the blocking utility functions in mail-tools.c to e-mail-session.c and add asynchronous variants. Same approach as Camel. Replace EMailReader.get_shell_backend() with EMailReader.get_backend(), which returns an EMailBackend. Easier access to the EMailSession. --- mail/em-folder-selection-button.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'mail/em-folder-selection-button.h') diff --git a/mail/em-folder-selection-button.h b/mail/em-folder-selection-button.h index cc75fac1dd..8eb89b94e2 100644 --- a/mail/em-folder-selection-button.h +++ b/mail/em-folder-selection-button.h @@ -25,6 +25,7 @@ #define EM_FOLDER_SELECTION_BUTTON_H #include +#include /* Standard GObject macros */ #define EM_TYPE_FOLDER_SELECTION_BUTTON \ @@ -66,7 +67,8 @@ struct _EMFolderSelectionButtonClass { GType em_folder_selection_button_get_type (void); GtkWidget * em_folder_selection_button_new - (const gchar *title, + (EMailSession *session, + const gchar *title, const gchar *caption); const gchar * em_folder_selection_button_get_caption (EMFolderSelectionButton *button); @@ -88,6 +90,11 @@ GList * em_folder_selection_button_get_selection_mult void em_folder_selection_button_set_selection_mult (EMFolderSelectionButton *button, GList *uris); +void em_folder_selection_button_set_session + (EMFolderSelectionButton *button, + EMailSession *session); +EMailSession * em_folder_selection_button_get_session + (EMFolderSelectionButton *button); const gchar * em_folder_selection_button_get_title (EMFolderSelectionButton *button); void em_folder_selection_button_set_title -- cgit