From 1cb19b5a1b927467589f3b0700c80d74669f8735 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 3 Nov 2000 18:55:41 +0000 Subject: Added new header files. 2000-11-03 Jeffrey Stedfast * Makefile.am: Added new header files. * component-factory.c (owner_set_cb): s/session_init/mail_session_init * session.c: Renamed public functions to mail_session_*. FIXME: Rename session.c to mail-session.c * folder-browser-factory.c: #include "mail-callbacks.h", #include "mail-session.h" and replace forget_passwords with mail_session_forget_passwords * mail.h: Move session prototypes to mail-session.h, Move mail-crypto prototypes to mail-crypto.h, Move mail-callback prototypes to mail-callbacks.h * mail-session.h: New header file containing public prototypes for session.c * mail-format.c: #include "mail-crypto.h" * mail-view.c: * folder-browser.c: #include "mail-callbacks.h" * mail-crypto.h: New header file containing public prototypes for mail-crypto.c * mail-callbacks.h: New header file containing public prototypes for mail-callbacks.c * message-list.c (message_list_get_layout): Set useful defaults. (message_list_setup_etable): Don't set the Outbox defaults on a folder just because it doesn't have a corresponding saved file. svn path=/trunk/; revision=6372 --- mail/session.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'mail/session.c') diff --git a/mail/session.c b/mail/session.c index 54243bc731..6bcfc96404 100644 --- a/mail/session.c +++ b/mail/session.c @@ -1,5 +1,5 @@ /* - * session.c: handles the session information and resource manipulation + * mail-session.c: handles the session information and resource manipulation * * Author: * Miguel de Icaza (miguel@gnu.org) @@ -9,6 +9,7 @@ #include #include #include "mail.h" +#include "mail-session.h" #include "mail-threads.h" CamelSession *session; @@ -26,8 +27,8 @@ request_callback (gchar *string, gpointer data) } char * -mail_request_dialog (const char *prompt, gboolean secret, const char *key, - gboolean async) +mail_session_request_dialog (const char *prompt, gboolean secret, const char *key, + gboolean async) { GtkWidget *dialog; @@ -90,7 +91,7 @@ auth_callback (CamelAuthCallbackMode mode, char *data, gboolean secret, return NULL; } - ans = mail_request_dialog (data, secret, key, TRUE); + ans = mail_session_request_dialog (data, secret, key, TRUE); g_free (key); if (!ans) { @@ -187,7 +188,7 @@ remove_callback (guint handle) /* ******************** */ void -session_init (void) +mail_session_init (void) { char *camel_dir; @@ -208,7 +209,8 @@ free_entry (gpointer key, gpointer value, gpointer user_data) } void -forget_passwords (BonoboUIComponent *uih, void *user_data, const char *path) +mail_session_forget_passwords (BonoboUIComponent *uih, void *user_data, + const char *path) { g_hash_table_foreach_remove (passwords, free_entry, NULL); } -- cgit v1.2.3