From 3adac597cff883050c09e765cb1c8e3cde05e3c9 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 15 Jun 2009 14:15:10 +0200 Subject: Leak a bit less. Use proper function prototype. The first is for mail, the second for publish-calendar plugin. --- mail/em-folder-tree.c | 1 + 1 file changed, 1 insertion(+) (limited to 'mail') diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index d765c2de7b..31144935f9 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -350,6 +350,7 @@ render_icon (GtkTreeViewColumn *column, g_object_set (renderer, "gicon", icon, NULL); g_object_unref (icon); + g_free (icon_name); } static gboolean -- cgit v1.2.3 From 5045330ee014deb11accbfcf9d19a47f61836ba7 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 15 Jun 2009 18:18:39 -0400 Subject: =?UTF-8?q?Bug=20345775=20=E2=80=93=20Missing=20blank=20line=20bet?= =?UTF-8?q?ween=20messages=20in=20saved=20mbox?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mail/mail-ops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 6bb9e059a4..2ffecb5509 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -2091,7 +2091,9 @@ save_messages_exec (struct _save_messages_msg *m) if (camel_stream_write_string(stream, from) == -1 || camel_stream_flush(stream) == -1 || camel_data_wrapper_write_to_stream((CamelDataWrapper *)message, (CamelStream *)filtered_stream) == -1 - || camel_stream_flush((CamelStream *)filtered_stream) == -1) { + || camel_stream_flush((CamelStream *)filtered_stream) == -1 + || camel_stream_write_string(stream, "\n") == -1 + || camel_stream_flush(stream) == -1) { camel_exception_setv(&m->base.ex, CAMEL_EXCEPTION_SYSTEM, _("Error saving messages to: %s:\n %s"), m->path, g_strerror(errno)); g_free(from); -- cgit v1.2.3 From bd418d39b77b0fa2ea1d9dd22ae19da12a8cab7c Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Tue, 16 Jun 2009 22:00:31 +0530 Subject: Re-arrange attachment bar files for Anjal's and webkit rendering. --- mail/Makefile.am | 8 ++++---- mail/e-mail-attachment-bar.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'mail') diff --git a/mail/Makefile.am b/mail/Makefile.am index 30cadeb736..a7602c99dd 100644 --- a/mail/Makefile.am +++ b/mail/Makefile.am @@ -105,10 +105,6 @@ mailinclude_HEADERS = \ libevolution_mail_la_SOURCES = \ $(MAIL_IDL_GENERATED) \ $(mailinclude_HEADERS) \ - e-attachment-handler-mail.c \ - e-attachment-handler-mail.h \ - e-mail-attachment-bar.c \ - e-mail-search-bar.c \ e-searching-tokenizer.c \ em-account-prefs.c \ em-account-prefs.h \ @@ -174,6 +170,10 @@ libevolution_mail_la_DEPENDENCIES = \ libevolution-mail-shared.la libevolution_mail_shared_la_SOURCES = \ + e-attachment-handler-mail.c \ + e-attachment-handler-mail.h \ + e-mail-attachment-bar.c \ + e-mail-search-bar.c \ em-account-editor.c \ em-account-editor.h \ em-event.c \ diff --git a/mail/e-mail-attachment-bar.h b/mail/e-mail-attachment-bar.h index 38a4a86fae..93c1b89261 100644 --- a/mail/e-mail-attachment-bar.h +++ b/mail/e-mail-attachment-bar.h @@ -23,7 +23,7 @@ #define E_MAIL_ATTACHMENT_BAR_H #include -#include +#include /* Standard GObject macros */ #define E_TYPE_MAIL_ATTACHMENT_BAR \ -- cgit v1.2.3 From 67159043da2de9df576f6a4eaa245e0c3926f004 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 18 Jun 2009 12:56:51 -0400 Subject: Use G_BEGIN_DECLS / G_END_DECLS macros. --- mail/em-account-editor.h | 9 ++------- mail/em-account-prefs.h | 9 ++------- mail/em-composer-utils.h | 9 ++------- mail/em-config.h | 9 ++------- mail/em-event.h | 9 ++------- mail/em-folder-browser.h | 9 ++------- mail/em-folder-properties.h | 9 ++------- mail/em-folder-selection-button.h | 9 ++------- mail/em-folder-selection.h | 9 ++------- mail/em-folder-tree-model.h | 9 ++------- mail/em-folder-tree.h | 9 ++------- mail/em-format-hook.h | 9 ++------- mail/em-html-stream.h | 9 ++------- mail/em-icon-stream.h | 9 ++------- mail/em-inline-filter.h | 13 ++++--------- mail/em-junk-hook.h | 9 ++------- mail/em-mailer-prefs.h | 11 +++-------- mail/em-menu.h | 9 ++------- mail/em-migrate.h | 9 ++------- mail/em-network-prefs.h | 11 +++-------- mail/em-popup.h | 9 ++------- mail/em-stripsig-filter.h | 9 ++------- mail/em-utils.h | 9 ++------- mail/mail-config-factory.h | 9 ++------- mail/mail-config.h | 9 ++------- mail/mail-crypto.h | 9 ++------- mail/mail-ops.h | 9 ++------- mail/mail-session.h | 9 ++------- mail/mail-types.h | 9 ++------- mail/message-list.h | 9 ++------- mail/message-tag-editor.h | 9 ++------- mail/message-tag-followup.h | 9 ++------- 32 files changed, 68 insertions(+), 228 deletions(-) (limited to 'mail') diff --git a/mail/em-account-editor.h b/mail/em-account-editor.h index 4567f36cbe..01d9dbd221 100644 --- a/mail/em-account-editor.h +++ b/mail/em-account-editor.h @@ -26,10 +26,7 @@ #include -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS struct _EAccount; @@ -83,8 +80,6 @@ void em_account_editor_build_extra_conf (EMAccountEditor *gui, const gchar *url) void em_account_editor_auto_detect_extra_conf (EMAccountEditor *gui); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* EM_ACCOUNT_EDITOR_H */ diff --git a/mail/em-account-prefs.h b/mail/em-account-prefs.h index 0dabc8a11a..9539661abe 100644 --- a/mail/em-account-prefs.h +++ b/mail/em-account-prefs.h @@ -33,10 +33,7 @@ #include -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS #define EM_ACCOUNT_PREFS_TYPE (em_account_prefs_get_type ()) @@ -84,8 +81,6 @@ GtkWidget *em_account_prefs_new (GNOME_Evolution_Shell shell); /* needed by global config */ #define EM_ACCOUNT_PREFS_CONTROL_ID "OAFIID:GNOME_Evolution_Mail_AccountPrefs_ConfigControl:" BASE_VERSION -#ifdef __cplusplus -} -#endif +G_END_DECLS #endif /* __EM_ACCOUNT_PREFS_H__ */ diff --git a/mail/em-composer-utils.h b/mail/em-composer-utils.h index ab4a86368e..3ba3c5e23f 100644 --- a/mail/em-composer-utils.h +++ b/mail/em-composer-utils.h @@ -26,10 +26,7 @@ #include -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS struct _CamelFolder; struct _CamelMimeMessage; @@ -85,8 +82,6 @@ void em_utils_get_reply_all (struct _CamelMimeMessage *message, struct _CamelInt struct _EMsgComposer * em_utils_reply_to_message (struct _CamelFolder *, const gchar *uid, struct _CamelMimeMessage *message, gint mode, struct _EMFormat *source); struct _EDestination ** em_utils_camel_address_to_destination (struct _CamelInternetAddress *iaddr); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* __EM_COMPOSER_UTILS_H__ */ diff --git a/mail/em-config.h b/mail/em-config.h index 4ebfa05ad1..b2d3bde691 100644 --- a/mail/em-config.h +++ b/mail/em-config.h @@ -27,10 +27,7 @@ #include "e-util/e-config.h" -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS struct _GConfClient; @@ -107,8 +104,6 @@ struct _EMConfigHookClass { GType em_config_hook_get_type(void); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* __EM_CONFIG_H__ */ diff --git a/mail/em-event.h b/mail/em-event.h index 5dc11bd910..b58a0f2cfc 100644 --- a/mail/em-event.h +++ b/mail/em-event.h @@ -29,10 +29,7 @@ #include "e-util/e-event.h" #include "mail/em-folder-browser.h" -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS struct _CamelFolder; struct _CamelMimeMessage; @@ -177,8 +174,6 @@ struct _EMEventHookClass { GType em_event_hook_get_type(void); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* __EM_EVENT_H__ */ diff --git a/mail/em-folder-browser.h b/mail/em-folder-browser.h index e2c74ecf17..966d3a3c13 100644 --- a/mail/em-folder-browser.h +++ b/mail/em-folder-browser.h @@ -26,10 +26,7 @@ #include "mail/em-folder-view.h" -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS typedef struct _EMFolderBrowser EMFolderBrowser; typedef struct _EMFolderBrowserClass EMFolderBrowserClass; @@ -60,8 +57,6 @@ void em_folder_browser_show_wide(EMFolderBrowser *emfv, gboolean state); gboolean em_folder_browser_get_wide(EMFolderBrowser *emfv); void em_folder_browser_suppress_message_selection(EMFolderBrowser *emfb); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* ! _EM_FOLDER_BROWSER_H */ diff --git a/mail/em-folder-properties.h b/mail/em-folder-properties.h index cdaec27e4d..d28eefe29b 100644 --- a/mail/em-folder-properties.h +++ b/mail/em-folder-properties.h @@ -24,18 +24,13 @@ #ifndef __EM_FOLDER_PROPERTIES_H__ #define __EM_FOLDER_PROPERTIES_H__ -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS struct _CamelFolder; struct _GtkWindow; void em_folder_properties_show(struct _GtkWindow *parent, struct _CamelFolder *folder, const gchar *uri); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* __EM_FOLDER_PROPERTIES_H__ */ diff --git a/mail/em-folder-selection-button.h b/mail/em-folder-selection-button.h index 7b2a1b471d..c04747369d 100644 --- a/mail/em-folder-selection-button.h +++ b/mail/em-folder-selection-button.h @@ -26,10 +26,7 @@ #include -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS #define EM_TYPE_FOLDER_SELECTION_BUTTON (em_folder_selection_button_get_type ()) #define EM_FOLDER_SELECTION_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EM_TYPE_FOLDER_SELECTION_BUTTON, EMFolderSelectionButton)) @@ -68,8 +65,6 @@ GList *em_folder_selection_button_get_selection_mult (EMFolderSelectionButton *b void em_folder_selection_button_set_multiselect (EMFolderSelectionButton *button, gboolean value); gboolean em_folder_selection_button_get_multiselect (EMFolderSelectionButton *button); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* __EM_FOLDER_SELECTION_BUTTON_H__ */ diff --git a/mail/em-folder-selection.h b/mail/em-folder-selection.h index 098fa2b227..8a15526a64 100644 --- a/mail/em-folder-selection.h +++ b/mail/em-folder-selection.h @@ -24,10 +24,7 @@ #ifndef EM_FOLDER_SELECTION_H #define EM_FOLDER_SELECTION_H -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS #include "em-folder-tree.h" @@ -38,8 +35,6 @@ void em_select_folder (struct _GtkWindow *parent_window, const gchar *title, con void (*done)(const gchar *uri, gpointer data), gpointer data); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* EM_FOLDER_SELECTION_H */ diff --git a/mail/em-folder-tree-model.h b/mail/em-folder-tree-model.h index 563ede2787..2c2274f6c9 100644 --- a/mail/em-folder-tree-model.h +++ b/mail/em-folder-tree-model.h @@ -31,10 +31,7 @@ #include -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS #define EM_TYPE_FOLDER_TREE_MODEL (em_folder_tree_model_get_type ()) #define EM_FOLDER_TREE_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EM_TYPE_FOLDER_TREE_MODEL, EMFolderTreeModel)) @@ -150,8 +147,6 @@ void em_folder_tree_model_set_unread_count (EMFolderTreeModel *model, CamelStore gboolean em_folder_tree_model_is_type_inbox (EMFolderTreeModel *model, CamelStore *store, const gchar *full); gchar * em_folder_tree_model_get_folder_name (EMFolderTreeModel *model, CamelStore *store, const gchar *full); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* __EM_FOLDER_TREE_MODEL_H__ */ diff --git a/mail/em-folder-tree.h b/mail/em-folder-tree.h index 265616a00a..ba02ff1e59 100644 --- a/mail/em-folder-tree.h +++ b/mail/em-folder-tree.h @@ -29,10 +29,7 @@ #include "mail/em-folder-tree-model.h" -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS #define EM_TYPE_FOLDER_TREE (em_folder_tree_get_type ()) #define EM_FOLDER_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EM_TYPE_FOLDER_TREE, EMFolderTree)) @@ -97,8 +94,6 @@ gboolean em_folder_tree_create_folder (EMFolderTree *emft, const gchar *full_nam GtkWidget * em_folder_tree_get_tree_view (EMFolderTree *emft); void em_folder_tree_set_skip_double_click (EMFolderTree *emft, gboolean skip); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* __EM_FOLDER_TREE_H__ */ diff --git a/mail/em-format-hook.h b/mail/em-format-hook.h index 553eb7adab..3f02167e58 100644 --- a/mail/em-format-hook.h +++ b/mail/em-format-hook.h @@ -30,10 +30,7 @@ #include "mail/em-format.h" -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS typedef struct _EMFormatHookItem EMFormatHookItem; typedef struct _EMFormatHookGroup EMFormatHookGroup; @@ -91,8 +88,6 @@ GType em_format_hook_get_type(void); /* register a type as a possible formatter hook point */ void em_format_hook_register_type(GType type); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* __EM_FORMAT_HOOK_H__ */ diff --git a/mail/em-html-stream.h b/mail/em-html-stream.h index 86baa5cfa6..1f832fa046 100644 --- a/mail/em-html-stream.h +++ b/mail/em-html-stream.h @@ -24,10 +24,7 @@ #ifndef EM_HTML_STREAM_H #define EM_HTML_STREAM_H -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS #define EM_HTML_STREAM_TYPE (em_html_stream_get_type ()) #define EM_HTML_STREAM(obj) (CAMEL_CHECK_CAST((obj), EM_HTML_STREAM_TYPE, EMHTMLStream)) @@ -60,8 +57,6 @@ CamelType em_html_stream_get_type (void); CamelStream *em_html_stream_new(struct _GtkHTML *html, struct _GtkHTMLStream *html_stream); void em_html_stream_set_flags (EMHTMLStream *emhs, GtkHTMLBeginFlags flags); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* EM_HTML_STREAM_H */ diff --git a/mail/em-icon-stream.h b/mail/em-icon-stream.h index 24f4acedc1..17d4246059 100644 --- a/mail/em-icon-stream.h +++ b/mail/em-icon-stream.h @@ -23,10 +23,7 @@ #ifndef EM_ICON_STREAM_H #define EM_ICON_STREAM_H -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS #define EM_ICON_STREAM_TYPE (em_icon_stream_get_type ()) #define EM_ICON_STREAM(obj) (CAMEL_CHECK_CAST((obj), EM_ICON_STREAM_TYPE, EMIconStream)) @@ -62,8 +59,6 @@ gint em_icon_stream_is_resized(const gchar *key, guint maxwidth, guint maxheight void em_icon_stream_clear_cache(void); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* EM_ICON_STREAM_H */ diff --git a/mail/em-inline-filter.h b/mail/em-inline-filter.h index ed5b688dfb..b0af215e22 100644 --- a/mail/em-inline-filter.h +++ b/mail/em-inline-filter.h @@ -24,18 +24,15 @@ #ifndef EM_INLINE_FILTER_H #define EM_INLINE_FILTER_H -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +#include +#include #define EM_INLINE_FILTER_TYPE (em_inline_filter_get_type ()) #define EM_INLINE_FILTER(obj) (CAMEL_CHECK_CAST((obj), EM_INLINE_FILTER_TYPE, EMInlineFilter)) #define EM_INLINE_FILTER_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), EM_INLINE_FILTER_TYPE, EMInlineFilterClass)) #define EM_IS_INLINE_FILTER(o) (CAMEL_CHECK_TYPE((o), EM_INLINE_FILTER_TYPE)) -#include -#include +G_BEGIN_DECLS typedef struct _EMInlineFilter { CamelMimeFilter filter; @@ -58,8 +55,6 @@ CamelType em_inline_filter_get_type(void); EMInlineFilter *em_inline_filter_new(CamelTransferEncoding base_encoding, CamelContentType *type); struct _CamelMultipart *em_inline_filter_get_multipart(EMInlineFilter *emif); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* EM_INLINE_FILTER_H */ diff --git a/mail/em-junk-hook.h b/mail/em-junk-hook.h index 9e7c999b29..1f66518e96 100644 --- a/mail/em-junk-hook.h +++ b/mail/em-junk-hook.h @@ -28,10 +28,7 @@ #include -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS typedef struct _EMJunkHookItem EMJunkHookItem; typedef struct _EMJunkHookGroup EMJunkHookGroup; @@ -99,8 +96,6 @@ struct _EMJunkClass { GType emj_get_type(void); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* __EM_JUNK_HOOK_H__ */ diff --git a/mail/em-mailer-prefs.h b/mail/em-mailer-prefs.h index 917c00c932..c556951bea 100644 --- a/mail/em-mailer-prefs.h +++ b/mail/em-mailer-prefs.h @@ -23,11 +23,6 @@ #ifndef __EM_MAILER_PREFS_H__ #define __EM_MAILER_PREFS_H__ -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ - #include #include @@ -51,6 +46,8 @@ struct _GtkWindow; #define EM_IS_MAILER_PREFS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EM_MAILER_PREFS_TYPE)) #define EM_IS_MAILER_PREFS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EM_MAILER_PREFS_TYPE)) +G_BEGIN_DECLS + typedef struct _EMMailerPrefs EMMailerPrefs; typedef struct _EMMailerPrefsClass EMMailerPrefsClass; typedef struct _EMMailerPrefsHeader EMMailerPrefsHeader; @@ -157,8 +154,6 @@ void em_mailer_prefs_header_free(EMMailerPrefsHeader *header); /* needed by global config */ #define EM_MAILER_PREFS_CONTROL_ID "OAFIID:GNOME_Evolution_Mail_MailerPrefs_ConfigControl:" BASE_VERSION -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* __EM_MAILER_PREFS_H__ */ diff --git a/mail/em-menu.h b/mail/em-menu.h index 96f571407c..3e7ca19aed 100644 --- a/mail/em-menu.h +++ b/mail/em-menu.h @@ -28,10 +28,7 @@ #include "e-util/e-menu.h" -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS typedef struct _EMMenu EMMenu; typedef struct _EMMenuClass EMMenuClass; @@ -118,8 +115,6 @@ struct _EMMenuHookClass { GType em_menu_hook_get_type(void); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* __EM_MENU_H__ */ diff --git a/mail/em-migrate.h b/mail/em-migrate.h index f6d43c159a..89896d4aec 100644 --- a/mail/em-migrate.h +++ b/mail/em-migrate.h @@ -25,15 +25,10 @@ #include -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS gint em_migrate (const gchar *evolution_dir, gint major, gint minor, gint revision, CamelException *ex); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* __EM_MIGRATE_H__ */ diff --git a/mail/em-network-prefs.h b/mail/em-network-prefs.h index 3d933a7acc..79b22c5a92 100644 --- a/mail/em-network-prefs.h +++ b/mail/em-network-prefs.h @@ -23,11 +23,6 @@ #ifndef __EM_NETWORK_PREFS_H__ #define __EM_NETWORK_PREFS_H__ -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ - #include #define EM_NETWORK_PREFS_TYPE (em_network_prefs_get_type ()) @@ -36,6 +31,8 @@ extern "C" { #define EM_IS_NETWORK_PREFS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EM_NETWORK_PREFS_TYPE)) #define EM_IS_NETWORK_PREFS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EM_NETWORK_PREFS_TYPE)) +G_BEGIN_DECLS + typedef struct _EMNetworkPrefs EMNetworkPrefs; typedef struct _EMNetworkPrefsClass EMNetworkPrefsClass; @@ -109,8 +106,6 @@ struct _GtkWidget *em_network_prefs_new (void); /* needed by global config */ #define EM_NETWORK_PREFS_CONTROL_ID "OAFIID:GNOME_Evolution_Mail_NetworkPrefs_ConfigControl:" BASE_VERSION -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* __EM_NETWORK_PREFS_H__ */ diff --git a/mail/em-popup.h b/mail/em-popup.h index dea4aee5d2..cdac00becc 100644 --- a/mail/em-popup.h +++ b/mail/em-popup.h @@ -28,10 +28,7 @@ #include "e-util/e-popup.h" -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS typedef struct _EMPopup EMPopup; typedef struct _EMPopupClass EMPopupClass; @@ -258,8 +255,6 @@ struct _EMPopupHookClass { GType em_popup_hook_get_type(void); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* __EM_POPUP_H__ */ diff --git a/mail/em-stripsig-filter.h b/mail/em-stripsig-filter.h index 761d46691f..9a09d1aab2 100644 --- a/mail/em-stripsig-filter.h +++ b/mail/em-stripsig-filter.h @@ -25,10 +25,7 @@ #include -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS #define EM_TYPE_STRIPSIG_FILTER (em_stripsig_filter_get_type ()) #define EM_STRIPSIG_FILTER(obj) (CAMEL_CHECK_CAST ((obj), EM_TYPE_STRIPSIG_FILTER, EMStripSigFilter)) @@ -56,8 +53,6 @@ CamelType em_stripsig_filter_get_type (void); CamelMimeFilter *em_stripsig_filter_new (void); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* __EM_STRIPSIG_FILTER_H__ */ diff --git a/mail/em-utils.h b/mail/em-utils.h index 19a0da6788..523d350b51 100644 --- a/mail/em-utils.h +++ b/mail/em-utils.h @@ -25,10 +25,7 @@ #include -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS #include @@ -117,8 +114,6 @@ const gchar *em_utils_snoop_type(struct _CamelMimePart *part); /* clears flag 'get_password_canceled' at every known accounts, so if needed, get_password will show dialog */ void em_utils_clear_get_password_canceled_accounts_flag (void); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* __EM_UTILS_H__ */ diff --git a/mail/mail-config-factory.h b/mail/mail-config-factory.h index 428598a663..e32d730089 100644 --- a/mail/mail-config-factory.h +++ b/mail/mail-config-factory.h @@ -23,10 +23,7 @@ #ifndef __MAIL_CONFIG_FACTORY_H__ #define __MAIL_CONFIG_FACTORY_H__ -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS #include #include "evolution-config-control.h" @@ -37,8 +34,6 @@ gboolean mail_config_register_factory (GNOME_Evolution_Shell shell); BonoboObject *mail_config_control_factory_cb (BonoboGenericFactory *factory, const gchar *component_id, gpointer user_data); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* __MAIL_CONFIG_FACTORY_H__ */ diff --git a/mail/mail-config.h b/mail/mail-config.h index d2fef97d8e..8ebb3dc78c 100644 --- a/mail/mail-config.h +++ b/mail/mail-config.h @@ -40,10 +40,7 @@ struct _GtkWindow; struct _CamelFolder; -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS typedef struct _MailConfigSignature { gint id; @@ -166,8 +163,6 @@ GType evolution_mail_config_get_type (void); gboolean evolution_mail_config_factory_init (void); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* MAIL_CONFIG_H */ diff --git a/mail/mail-crypto.h b/mail/mail-crypto.h index a6ba393bf7..0ed51e3ff1 100644 --- a/mail/mail-crypto.h +++ b/mail/mail-crypto.h @@ -23,18 +23,13 @@ #ifndef MAIL_CRYPTO_H #define MAIL_CRYPTO_H -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS struct _EAccount; /* PGP/MIME convenience wrappers */ struct _CamelCipherContext *mail_crypto_get_pgp_cipher_context(struct _EAccount *account); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* ! MAIL_CRYPTO_H */ diff --git a/mail/mail-ops.h b/mail/mail-ops.h index 12e8632f88..4bc1a9b47d 100644 --- a/mail/mail-ops.h +++ b/mail/mail-ops.h @@ -24,10 +24,7 @@ #ifndef MAIL_OPS_H #define MAIL_OPS_H -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS #include "mail-mt.h" @@ -168,8 +165,6 @@ void mail_execute_shell_command (CamelFilterDriver *driver, gint argc, gchar **a gint mail_check_service(const gchar *url, CamelProviderType type, void (*done)(const gchar *url, CamelProviderType type, GList *authtypes, gpointer data), gpointer data); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* MAIL_OPS_H */ diff --git a/mail/mail-session.h b/mail/mail-session.h index d0595ba548..aa226222d7 100644 --- a/mail/mail-session.h +++ b/mail/mail-session.h @@ -27,10 +27,7 @@ #include #include -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS void mail_session_init (const gchar *base_directory); void mail_session_shutdown (void); @@ -57,8 +54,6 @@ void mail_session_set_junk_headers (const gchar **name, const gchar **value, gin extern CamelSession *session; -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* ! MAIL_SESSION_H */ diff --git a/mail/mail-types.h b/mail/mail-types.h index 6acbeaf43a..c5c737eca9 100644 --- a/mail/mail-types.h +++ b/mail/mail-types.h @@ -21,10 +21,7 @@ #ifndef MAIL_TYPES_H #define MAIL_TYPES_H 1 -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus }*/ +G_BEGIN_DECLS typedef struct _FolderBrowser FolderBrowser; @@ -33,8 +30,6 @@ typedef struct _SubscribeDialog SubscribeDialog; typedef struct _MessageList MessageList; typedef struct _MailDisplay MailDisplay; -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* MAIL_TYPES_H */ diff --git a/mail/message-list.h b/mail/message-list.h index 04a937047a..8949b91347 100644 --- a/mail/message-list.h +++ b/mail/message-list.h @@ -28,10 +28,7 @@ #include #include
-#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS #define MESSAGE_LIST_TYPE (message_list_get_type ()) #define MESSAGE_LIST(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MESSAGE_LIST_TYPE, MessageList)) @@ -240,8 +237,6 @@ void message_list_set_scrollbar_position (MessageList *ml, double pos) #define MESSAGE_LIST_LOCK(m, l) g_mutex_lock(((MessageList *)m)->l) #define MESSAGE_LIST_UNLOCK(m, l) g_mutex_unlock(((MessageList *)m)->l) -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* _MESSAGE_LIST_H_ */ diff --git a/mail/message-tag-editor.h b/mail/message-tag-editor.h index 5193ac2103..3b097c190c 100644 --- a/mail/message-tag-editor.h +++ b/mail/message-tag-editor.h @@ -28,10 +28,7 @@ #include #include -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS #define MESSAGE_TAG_EDITOR_TYPE (message_tag_editor_get_type ()) #define MESSAGE_TAG_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, MESSAGE_TAG_EDITOR_TYPE, MessageTagEditor)) @@ -65,8 +62,6 @@ GType message_tag_editor_get_type (void); CamelTag *message_tag_editor_get_tag_list (MessageTagEditor *editor); void message_tag_editor_set_tag_list (MessageTagEditor *editor, CamelTag *tags); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* __MESSAGE_TAG_EDITOR_H__ */ diff --git a/mail/message-tag-followup.h b/mail/message-tag-followup.h index 7e362df300..bc8c793eff 100644 --- a/mail/message-tag-followup.h +++ b/mail/message-tag-followup.h @@ -27,10 +27,7 @@ #include #include -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ +G_BEGIN_DECLS #define MESSAGE_TAG_FOLLOWUP_TYPE (message_tag_followup_get_type ()) #define MESSAGE_TAG_FOLLOWUP(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, MESSAGE_TAG_FOLLOWUP_TYPE, MessageTagFollowUp)) @@ -72,8 +69,6 @@ void message_tag_followup_append_message (MessageTagFollowUp *editor, const gchar *from, const gchar *subject); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* __MESSAGE_TAG_FOLLOWUP_H__ */ -- cgit v1.2.3 From 547e123d2777bd3beba36e74e018efb590ed44d4 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 18 Jun 2009 15:26:21 -0400 Subject: Stop abusing forward declarations. --- mail/em-account-editor.c | 124 ++++++++++++++++++++--------------------- mail/em-account-editor.h | 27 ++++----- mail/em-composer-prefs.h | 8 ++- mail/em-composer-utils.h | 60 +++++++++----------- mail/em-config.c | 2 +- mail/em-config.h | 20 ++++--- mail/em-event.h | 22 +++----- mail/em-folder-properties.c | 2 +- mail/em-folder-properties.h | 8 +-- mail/em-folder-selection.h | 7 +-- mail/em-folder-selector.h | 13 ++--- mail/em-folder-tree-model.c | 2 +- mail/em-folder-view.h | 27 ++++----- mail/em-format-hook.c | 2 +- mail/em-format-hook.h | 4 +- mail/em-format-html-display.h | 2 +- mail/em-format-html.c | 2 +- mail/em-format.c | 8 +-- mail/em-html-stream.c | 4 +- mail/em-html-stream.h | 9 +-- mail/em-icon-stream.c | 2 +- mail/em-icon-stream.h | 9 +-- mail/em-inline-filter.h | 3 +- mail/em-junk-hook.h | 3 +- mail/em-mailer-prefs.c | 2 +- mail/em-mailer-prefs.h | 118 ++++++++++++++++++--------------------- mail/em-menu.c | 4 +- mail/em-menu.h | 7 ++- mail/em-network-prefs.c | 2 +- mail/em-network-prefs.h | 65 +++++++++++---------- mail/em-popup.c | 4 +- mail/em-popup.h | 9 +-- mail/em-utils.c | 12 ++-- mail/em-utils.h | 93 ++++++++++++++----------------- mail/importers/Makefile.am | 1 + mail/importers/mail-importer.h | 38 ++++++------- mail/mail-autofilter.h | 23 ++++---- mail/mail-component.c | 4 +- mail/mail-component.h | 25 +++++---- mail/mail-config.h | 71 +++++++++++------------ mail/mail-crypto.h | 4 +- mail/mail-mt.c | 6 +- mail/mail-tools.h | 32 +++++------ mail/mail-vfolder.h | 28 +++++----- mail/message-list.h | 3 +- mail/message-tag-followup.h | 8 +-- 46 files changed, 439 insertions(+), 490 deletions(-) (limited to 'mail') diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c index a9d0fccd39..95b525a8a9 100644 --- a/mail/em-account-editor.c +++ b/mail/em-account-editor.c @@ -89,34 +89,34 @@ typedef struct _EMAccountEditorService { EMAccountEditor *emae; /* parent pointer, for callbacks */ /* NOTE: keep all widgets together, first frame last check_dialog */ - struct _GtkWidget *frame; - struct _GtkWidget *container; - - struct _GtkComboBox *providers; - - struct _GtkLabel *description; - struct _GtkLabel *hostlabel; - struct _GtkEntry *hostname; - struct _GtkLabel *userlabel; - struct _GtkEntry *username; - struct _GtkEntry *path; - struct _GtkLabel *pathlabel; - struct _GtkWidget *pathentry; - - struct _GtkWidget *ssl_frame; - struct _GtkComboBox *use_ssl; - struct _GtkWidget *ssl_hbox; - struct _GtkWidget *no_ssl; - - struct _GtkWidget *auth_frame; - struct _GtkComboBox *authtype; - - struct _GtkWidget *authitem; - struct _GtkToggleButton *remember; - struct _GtkButton *check_supported; - struct _GtkToggleButton *needs_auth; - - struct _GtkWidget *check_dialog; + GtkWidget *frame; + GtkWidget *container; + + GtkComboBox *providers; + + GtkLabel *description; + GtkLabel *hostlabel; + GtkEntry *hostname; + GtkLabel *userlabel; + GtkEntry *username; + GtkEntry *path; + GtkLabel *pathlabel; + GtkWidget *pathentry; + + GtkWidget *ssl_frame; + GtkComboBox *use_ssl; + GtkWidget *ssl_hbox; + GtkWidget *no_ssl; + + GtkWidget *auth_frame; + GtkComboBox *authtype; + + GtkWidget *authitem; + GtkToggleButton *remember; + GtkButton *check_supported; + GtkToggleButton *needs_auth; + + GtkWidget *check_dialog; gint check_id; GList *authtypes; /* if "Check supported" */ @@ -126,12 +126,12 @@ typedef struct _EMAccountEditorService { gint auth_changed_id; } EMAccountEditorService; -typedef struct _EMAccountEditorPrivate { +struct _EMAccountEditorPrivate { struct _EMConfig *config; GList *providers; /* signatures */ - struct _GtkComboBox *signatures_dropdown; + GtkComboBox *signatures_dropdown; guint sig_added_id; guint sig_removed_id; guint sig_changed_id; @@ -149,31 +149,31 @@ typedef struct _EMAccountEditorPrivate { /* account management */ GtkEntry *identity_entries[5]; - struct _GtkToggleButton *default_account; - struct _GtkWidget *management_frame; + GtkToggleButton *default_account; + GtkWidget *management_frame; /* special folders */ - struct _GtkButton *drafts_folder_button; - struct _GtkButton *sent_folder_button; - struct _GtkButton *restore_folders_button; + GtkButton *drafts_folder_button; + GtkButton *sent_folder_button; + GtkButton *restore_folders_button; /* Security */ - struct _GtkEntry *pgp_key; - struct _GtkToggleButton *pgp_encrypt_to_self; - struct _GtkToggleButton *pgp_always_sign; - struct _GtkToggleButton *pgp_no_imip_sign; - struct _GtkToggleButton *pgp_always_trust; - - struct _GtkToggleButton *smime_sign_default; - struct _GtkEntry *smime_sign_key; - struct _GtkButton *smime_sign_key_select; - struct _GtkButton *smime_sign_key_clear; - struct _GtkButton *smime_sign_select; - struct _GtkToggleButton *smime_encrypt_default; - struct _GtkToggleButton *smime_encrypt_to_self; - struct _GtkEntry *smime_encrypt_key; - struct _GtkButton *smime_encrypt_key_select; - struct _GtkButton *smime_encrypt_key_clear; + GtkEntry *pgp_key; + GtkToggleButton *pgp_encrypt_to_self; + GtkToggleButton *pgp_always_sign; + GtkToggleButton *pgp_no_imip_sign; + GtkToggleButton *pgp_always_trust; + + GtkToggleButton *smime_sign_default; + GtkEntry *smime_sign_key; + GtkButton *smime_sign_key_select; + GtkButton *smime_sign_key_clear; + GtkButton *smime_sign_select; + GtkToggleButton *smime_encrypt_default; + GtkToggleButton *smime_encrypt_to_self; + GtkEntry *smime_encrypt_key; + GtkButton *smime_encrypt_key_select; + GtkButton *smime_encrypt_key_clear; /* for e-config callbacks, each page sets up its widgets, then they are dealed out by the get_widget callback in order*/ GtkWidget *widgets[5]; @@ -185,7 +185,7 @@ typedef struct _EMAccountEditorPrivate { guint receive_set:1; guint send_set:1; guint management_set:1; -} EMAccountEditorPrivate; +}; static void emae_refresh_authtype(EMAccountEditor *emae, EMAccountEditorService *service); static void em_account_editor_construct(EMAccountEditor *emae, EAccount *account, em_account_editor_t type, const gchar *id); @@ -1789,7 +1789,7 @@ emae_queue_widgets(EMAccountEditor *emae, GladeXML *xml, const gchar *first, ... } static GtkWidget * -emae_identity_page(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data) +emae_identity_page(EConfig *ec, EConfigItem *item, GtkWidget *parent, GtkWidget *old, gpointer data) { EMAccountEditor *emae = data; EMAccountEditorPrivate *gui = emae->priv; @@ -1862,7 +1862,7 @@ emae_identity_page(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, st } static GtkWidget * -emae_receive_page(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data) +emae_receive_page(EConfig *ec, EConfigItem *item, GtkWidget *parent, GtkWidget *old, gpointer data) { EMAccountEditor *emae = data; EMAccountEditorPrivate *gui = emae->priv; @@ -2157,7 +2157,7 @@ emae_option_options (EMAccountEditorService *service, CamelURL *url, const gchar } static GtkWidget * -emae_receive_options_item(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data) +emae_receive_options_item(EConfig *ec, EConfigItem *item, GtkWidget *parent, GtkWidget *old, gpointer data) { EMAccountEditor *emae = data; GtkWidget *w, *box, *spin; @@ -2194,7 +2194,7 @@ emae_receive_options_item(EConfig *ec, EConfigItem *item, struct _GtkWidget *par } static GtkWidget * -emae_receive_options_extra_item(EConfig *ec, EConfigItem *eitem, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data) +emae_receive_options_extra_item(EConfig *ec, EConfigItem *eitem, GtkWidget *parent, GtkWidget *old, gpointer data) { EMAccountEditor *emae = data; struct _receive_options_item *item = (struct _receive_options_item *)eitem; @@ -2328,7 +2328,7 @@ section: } static GtkWidget * -emae_send_page(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data) +emae_send_page(EConfig *ec, EConfigItem *item, GtkWidget *parent, GtkWidget *old, gpointer data) { EMAccountEditor *emae = data; EMAccountEditorPrivate *gui = emae->priv; @@ -2383,7 +2383,7 @@ emae_send_page(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct } static GtkWidget * -emae_defaults_page(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data) +emae_defaults_page(EConfig *ec, EConfigItem *item, GtkWidget *parent, GtkWidget *old, gpointer data) { EMAccountEditor *emae = data; EMAccountEditorPrivate *gui = emae->priv; @@ -2441,7 +2441,7 @@ emae_defaults_page(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, st } static GtkWidget * -emae_security_page(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data) +emae_security_page(EConfig *ec, EConfigItem *item, GtkWidget *parent, GtkWidget *old, gpointer data) { EMAccountEditor *emae = data; #if defined (HAVE_NSS) @@ -2505,7 +2505,7 @@ emae_security_page(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, st } static GtkWidget * -emae_widget_glade(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data) +emae_widget_glade(EConfig *ec, EConfigItem *item, GtkWidget *parent, GtkWidget *old, gpointer data) { EMAccountEditor *emae = data; gint i; @@ -2556,7 +2556,7 @@ static EMConfigItem emae_editor_items[] = { static gboolean emae_editor_items_translated = FALSE; static GtkWidget * -emae_management_page(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data) +emae_management_page(EConfig *ec, EConfigItem *item, GtkWidget *parent, GtkWidget *old, gpointer data) { EMAccountEditor *emae = data; EMAccountEditorPrivate *gui = emae->priv; @@ -2586,7 +2586,7 @@ emae_management_page(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, } static GtkWidget * -emae_widget_druid_glade(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data) +emae_widget_druid_glade(EConfig *ec, EConfigItem *item, GtkWidget *parent, GtkWidget *old, gpointer data) { GladeXML *druidxml; GtkWidget *w; diff --git a/mail/em-account-editor.h b/mail/em-account-editor.h index 01d9dbd221..d8d96f58f0 100644 --- a/mail/em-account-editor.h +++ b/mail/em-account-editor.h @@ -26,12 +26,13 @@ #include -G_BEGIN_DECLS +#include -struct _EAccount; +G_BEGIN_DECLS typedef struct _EMAccountEditor EMAccountEditor; typedef struct _EMAccountEditorClass EMAccountEditorClass; +typedef struct _EMAccountEditorPrivate EMAccountEditorPrivate; typedef enum { EMAE_NOTEBOOK, @@ -42,15 +43,15 @@ typedef enum { struct _EMAccountEditor { GObject gobject; - struct _EMAccountEditorPrivate *priv; + EMAccountEditorPrivate *priv; em_account_editor_t type; - struct _GtkWidget *editor; /* gtknotebook or druid, depending on type */ + GtkWidget *editor; /* gtknotebook or druid, depending on type */ - struct _EMConfig *config; /* driver object */ + EMConfig *config; /* driver object */ - struct _EAccount *account; /* working account, must instant apply to this */ - struct _EAccount *original; /* original account, not changed unless commit is invoked */ + EAccount *account; /* working account, must instant apply to this */ + EAccount *original; /* original account, not changed unless commit is invoked */ GtkWidget **pages; /* Pages for Anjal's page type editor */ @@ -63,18 +64,18 @@ struct _EMAccountEditorClass { GType em_account_editor_get_type(void); -EMAccountEditor *em_account_editor_new(struct _EAccount *account, em_account_editor_t type, const gchar *id); -EMAccountEditor *em_account_editor_new_for_pages(struct _EAccount *account, em_account_editor_t type, gchar *id, struct _GtkWidget **pages); +EMAccountEditor *em_account_editor_new(EAccount *account, em_account_editor_t type, const gchar *id); +EMAccountEditor *em_account_editor_new_for_pages(EAccount *account, em_account_editor_t type, gchar *id, GtkWidget **pages); void em_account_editor_commit (EMAccountEditor *emae); void em_account_editor_check (EMAccountEditor *emae, const gchar *page); gboolean em_account_editor_save (EMAccountEditor *gui); void em_account_editor_destroy (EMAccountEditor *gui); -gboolean em_account_editor_identity_complete (EMAccountEditor *gui, struct _GtkWidget **incomplete); -gboolean em_account_editor_source_complete (EMAccountEditor *gui, struct _GtkWidget **incomplete); -gboolean em_account_editor_transport_complete (EMAccountEditor *gui, struct _GtkWidget **incomplete); -gboolean em_account_editor_management_complete (EMAccountEditor *gui, struct _GtkWidget **incomplete); +gboolean em_account_editor_identity_complete (EMAccountEditor *gui, GtkWidget **incomplete); +gboolean em_account_editor_source_complete (EMAccountEditor *gui, GtkWidget **incomplete); +gboolean em_account_editor_transport_complete (EMAccountEditor *gui, GtkWidget **incomplete); +gboolean em_account_editor_management_complete (EMAccountEditor *gui, GtkWidget **incomplete); void em_account_editor_build_extra_conf (EMAccountEditor *gui, const gchar *url); diff --git a/mail/em-composer-prefs.h b/mail/em-composer-prefs.h index 2e12c7ffb2..1ff850623d 100644 --- a/mail/em-composer-prefs.h +++ b/mail/em-composer-prefs.h @@ -24,6 +24,8 @@ #define __EM_COMPOSER_PREFS_H__ #include +#include +#include /* Standard GObject macros */ #define EM_TYPE_COMPOSER_PREFS \ @@ -55,7 +57,7 @@ struct _GladeXML; struct _EMComposerPrefs { GtkVBox parent; - struct _GladeXML *gui; + GladeXML *gui; /* General tab */ @@ -76,9 +78,9 @@ struct _EMComposerPrefs { GtkButton *sig_add_script; GtkButton *sig_edit; GtkButton *sig_delete; - struct _GtkHTML *sig_preview; + GtkHTML *sig_preview; - struct _GladeXML *sig_script_gui; + GladeXML *sig_script_gui; GtkWidget *sig_script_dialog; guint sig_added_id; diff --git a/mail/em-composer-utils.h b/mail/em-composer-utils.h index 3ba3c5e23f..4c916529ec 100644 --- a/mail/em-composer-utils.h +++ b/mail/em-composer-utils.h @@ -25,50 +25,44 @@ #define __EM_COMPOSER_UTILS_H__ #include +#include -G_BEGIN_DECLS +#include +#include -struct _CamelFolder; -struct _CamelMimeMessage; -struct _CamelException; -struct _CamelInternetAddress; -struct _CamelNNTPAddress; -struct _EMsgComposer; -struct _EMFormat; -struct _EAccount; -struct _EDestination; +G_BEGIN_DECLS -void em_composer_utils_setup_callbacks (struct _EMsgComposer *composer, struct _CamelFolder *folder, const gchar *uid, - guint32 flags, guint32 set, struct _CamelFolder *drafts, const gchar *drafts_uid); +void em_composer_utils_setup_callbacks (EMsgComposer *composer, CamelFolder *folder, const gchar *uid, + guint32 flags, guint32 set, CamelFolder *drafts, const gchar *drafts_uid); #define em_composer_utils_setup_default_callbacks(composer) em_composer_utils_setup_callbacks (composer, NULL, NULL, 0, 0, NULL, NULL) -void em_utils_composer_send_cb(struct _EMsgComposer *composer, gpointer user_data); -void em_utils_composer_save_draft_cb(struct _EMsgComposer *composer, gpointer user_data); +void em_utils_composer_send_cb(EMsgComposer *composer, gpointer user_data); +void em_utils_composer_save_draft_cb(EMsgComposer *composer, gpointer user_data); void em_utils_compose_new_message (const gchar *fromuri); -struct _EMsgComposer * em_utils_compose_lite_new_message (const gchar *fromuri); +EMsgComposer * em_utils_compose_lite_new_message (const gchar *fromuri); /* FIXME: mailto? url? should make up its mind what its called. imho use 'uri' */ -struct _EMsgComposer * em_utils_compose_new_message_with_mailto (const gchar *url, const gchar *fromuri); +EMsgComposer * em_utils_compose_new_message_with_mailto (const gchar *url, const gchar *fromuri); -void em_utils_edit_message (struct _CamelMimeMessage *message, struct _CamelFolder *folder); -void em_utils_edit_messages (struct _CamelFolder *folder, GPtrArray *uids, gboolean replace); +void em_utils_edit_message (CamelMimeMessage *message, CamelFolder *folder); +void em_utils_edit_messages (CamelFolder *folder, GPtrArray *uids, gboolean replace); -void em_utils_forward_attached (struct _CamelFolder *folder, GPtrArray *uids, const gchar *fromuri); -void em_utils_forward_inline (struct _CamelFolder *folder, GPtrArray *uids, const gchar *fromuri); -void em_utils_forward_quoted (struct _CamelFolder *folder, GPtrArray *uids, const gchar *fromuri); +void em_utils_forward_attached (CamelFolder *folder, GPtrArray *uids, const gchar *fromuri); +void em_utils_forward_inline (CamelFolder *folder, GPtrArray *uids, const gchar *fromuri); +void em_utils_forward_quoted (CamelFolder *folder, GPtrArray *uids, const gchar *fromuri); -void em_utils_forward_message (struct _CamelMimeMessage *msg, const gchar *fromuri); -void em_utils_forward_messages (struct _CamelFolder *folder, GPtrArray *uids, const gchar *fromuri); +void em_utils_forward_message (CamelMimeMessage *msg, const gchar *fromuri); +void em_utils_forward_messages (CamelFolder *folder, GPtrArray *uids, const gchar *fromuri); -void em_utils_redirect_message (struct _CamelMimeMessage *message); -void em_utils_redirect_message_by_uid (struct _CamelFolder *folder, const gchar *uid); +void em_utils_redirect_message (CamelMimeMessage *message); +void em_utils_redirect_message_by_uid (CamelFolder *folder, const gchar *uid); -void em_utils_forward_message_raw (struct _CamelFolder *folder, struct _CamelMimeMessage *message, const gchar *address, struct _CamelException *ex); +void em_utils_forward_message_raw (CamelFolder *folder, CamelMimeMessage *message, const gchar *address, CamelException *ex); -void em_utils_handle_receipt (struct _CamelFolder *folder, const gchar *uid, struct _CamelMimeMessage *msg); -void em_utils_send_receipt (struct _CamelFolder *folder, struct _CamelMimeMessage *message); +void em_utils_handle_receipt (CamelFolder *folder, const gchar *uid, CamelMimeMessage *msg); +void em_utils_send_receipt (CamelFolder *folder, CamelMimeMessage *message); enum { REPLY_MODE_SENDER, @@ -76,11 +70,11 @@ enum { REPLY_MODE_LIST }; -gchar *em_utils_construct_composer_text (struct _CamelMimeMessage *message, struct _EMFormat *source); -void em_utils_get_reply_sender (struct _CamelMimeMessage *message, struct _CamelInternetAddress *to, struct _CamelNNTPAddress *postto); -void em_utils_get_reply_all (struct _CamelMimeMessage *message, struct _CamelInternetAddress *to, struct _CamelInternetAddress *cc, struct _CamelNNTPAddress *postto); -struct _EMsgComposer * em_utils_reply_to_message (struct _CamelFolder *, const gchar *uid, struct _CamelMimeMessage *message, gint mode, struct _EMFormat *source); -struct _EDestination ** em_utils_camel_address_to_destination (struct _CamelInternetAddress *iaddr); +gchar *em_utils_construct_composer_text (CamelMimeMessage *message, EMFormat *source); +void em_utils_get_reply_sender (CamelMimeMessage *message, CamelInternetAddress *to, CamelNNTPAddress *postto); +void em_utils_get_reply_all (CamelMimeMessage *message, CamelInternetAddress *to, CamelInternetAddress *cc, CamelNNTPAddress *postto); +EMsgComposer * em_utils_reply_to_message (CamelFolder *, const gchar *uid, CamelMimeMessage *message, gint mode, EMFormat *source); +EDestination ** em_utils_camel_address_to_destination (CamelInternetAddress *iaddr); G_END_DECLS diff --git a/mail/em-config.c b/mail/em-config.c index 985a02d56c..a44554b800 100644 --- a/mail/em-config.c +++ b/mail/em-config.c @@ -190,7 +190,7 @@ EMConfig *em_config_new(gint type, const gchar *menuid) } EMConfigTargetFolder * -em_config_target_new_folder(EMConfig *emp, struct _CamelFolder *folder, const gchar *uri) +em_config_target_new_folder(EMConfig *emp, CamelFolder *folder, const gchar *uri) { EMConfigTargetFolder *t = e_config_target_new(&emp->config, EM_CONFIG_TARGET_FOLDER, sizeof(*t)); diff --git a/mail/em-config.h b/mail/em-config.h index b2d3bde691..656a40ec38 100644 --- a/mail/em-config.h +++ b/mail/em-config.h @@ -24,15 +24,17 @@ #define __EM_CONFIG_H__ #include +#include +#include +#include #include "e-util/e-config.h" G_BEGIN_DECLS -struct _GConfClient; - typedef struct _EMConfig EMConfig; typedef struct _EMConfigClass EMConfigClass; +typedef struct _EMConfigPrivate EMConfigPrivate; /* Current target description */ /* Types of popup tagets */ @@ -49,7 +51,7 @@ typedef struct _EMConfigTargetAccount EMConfigTargetAccount; struct _EMConfigTargetFolder { EConfigTarget target; - struct _CamelFolder *folder; + CamelFolder *folder; gchar *uri; }; @@ -57,13 +59,13 @@ struct _EMConfigTargetPrefs { EConfigTarget target; /* preferences are global from gconf */ - struct _GConfClient *gconf; + GConfClient *gconf; }; struct _EMConfigTargetAccount { EConfigTarget target; - struct _EAccount *account; + EAccount *account; /* Need also: working account, not just real account, so changes can be propagated around And some mechamism for controlling the gui if we're running inside a druid, e.g. enabling 'next' */ }; @@ -74,7 +76,7 @@ typedef struct _EConfigItem EMConfigItem; struct _EMConfig { EConfig config; - struct _EMConfigPrivate *priv; + EMConfigPrivate *priv; }; struct _EMConfigClass { @@ -85,9 +87,9 @@ GType em_config_get_type(void); EMConfig *em_config_new(gint type, const gchar *menuid); -EMConfigTargetFolder *em_config_target_new_folder(EMConfig *emp, struct _CamelFolder *folder, const gchar *uri); -EMConfigTargetPrefs *em_config_target_new_prefs(EMConfig *emp, struct _GConfClient *gconf); -EMConfigTargetAccount *em_config_target_new_account(EMConfig *emp, struct _EAccount *account); +EMConfigTargetFolder *em_config_target_new_folder(EMConfig *emp, CamelFolder *folder, const gchar *uri); +EMConfigTargetPrefs *em_config_target_new_prefs(EMConfig *emp, GConfClient *gconf); +EMConfigTargetAccount *em_config_target_new_account(EMConfig *emp, EAccount *account); /* ********************************************************************** */ diff --git a/mail/em-event.h b/mail/em-event.h index b58a0f2cfc..770daa72f2 100644 --- a/mail/em-event.h +++ b/mail/em-event.h @@ -27,15 +27,11 @@ #include #include "e-util/e-event.h" +#include "composer/e-msg-composer.h" #include "mail/em-folder-browser.h" G_BEGIN_DECLS -struct _CamelFolder; -struct _CamelMimeMessage; -struct _EMsgComposer; -struct _GtkWidget; - typedef struct _EMEvent EMEvent; typedef struct _EMEventClass EMEventClass; @@ -93,9 +89,9 @@ typedef struct _EMEventTargetMessage EMEventTargetMessage; struct _EMEventTargetMessage { EEventTarget target; - struct _CamelFolder *folder; + CamelFolder *folder; gchar *uid; - struct _CamelMimeMessage *message; + CamelMimeMessage *message; }; typedef struct _EMEventTargetComposer EMEventTargetComposer; @@ -103,7 +99,7 @@ typedef struct _EMEventTargetComposer EMEventTargetComposer; struct _EMEventTargetComposer { EEventTarget target; - struct _EMsgComposer *composer; + EMsgComposer *composer; }; typedef struct _EMEventTargetFolderBrowser EMEventTargetFolderBrowser; @@ -111,7 +107,7 @@ typedef struct _EMEventTargetFolderBrowser EMEventTargetFolderBrowser; struct _EMEventTargetFolderBrowser { EEventTarget target; - struct _EMFolderBrowser *emfb; + EMFolderBrowser *emfb; }; @@ -120,7 +116,7 @@ typedef struct _EMEventTargetSendReceive EMEventTargetSendReceive; struct _EMEventTargetSendReceive { EEventTarget target; - struct _GtkWidget *table; + GtkWidget *table; gpointer data; gint row; }; @@ -154,9 +150,9 @@ EMEvent *em_event_peek(void); EMEventTargetFolder *em_event_target_new_folder(EMEvent *emp, const gchar *uri, guint32 flags); EMEventTargetFolderBrowser *em_event_target_new_folder_browser (EMEvent *eme, EMFolderBrowser *emfb); -EMEventTargetComposer *em_event_target_new_composer(EMEvent *emp, const struct _EMsgComposer *composer, guint32 flags); -EMEventTargetMessage *em_event_target_new_message(EMEvent *emp, struct _CamelFolder *folder, struct _CamelMimeMessage *message, const gchar *uid, guint32 flags); -EMEventTargetSendReceive * em_event_target_new_send_receive(EMEvent *eme, struct _GtkWidget *table, gpointer data, gint row, guint32 flags); +EMEventTargetComposer *em_event_target_new_composer(EMEvent *emp, const EMsgComposer *composer, guint32 flags); +EMEventTargetMessage *em_event_target_new_message(EMEvent *emp, CamelFolder *folder, CamelMimeMessage *message, const gchar *uid, guint32 flags); +EMEventTargetSendReceive * em_event_target_new_send_receive(EMEvent *eme, GtkWidget *table, gpointer data, gint row, guint32 flags); EMEventTargetCustomIcon * em_event_target_new_custom_icon(EMEvent *eme, GtkTreeStore *store, GtkTreeIter *iter, const gchar *uri, guint32 flags); /* ********************************************************************** */ diff --git a/mail/em-folder-properties.c b/mail/em-folder-properties.c index 429b409b54..709491a686 100644 --- a/mail/em-folder-properties.c +++ b/mail/em-folder-properties.c @@ -154,7 +154,7 @@ add_numbered_row (GtkTable *table, gint row, const gchar *description, const gch } static GtkWidget * -emfp_get_folder_item(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data) +emfp_get_folder_item(EConfig *ec, EConfigItem *item, GtkWidget *parent, GtkWidget *old, gpointer data) { GtkWidget *w, *table, *label; struct _prop_data *prop_data = data; diff --git a/mail/em-folder-properties.h b/mail/em-folder-properties.h index d28eefe29b..958a5669c3 100644 --- a/mail/em-folder-properties.h +++ b/mail/em-folder-properties.h @@ -24,12 +24,12 @@ #ifndef __EM_FOLDER_PROPERTIES_H__ #define __EM_FOLDER_PROPERTIES_H__ -G_BEGIN_DECLS +#include +#include -struct _CamelFolder; -struct _GtkWindow; +G_BEGIN_DECLS -void em_folder_properties_show(struct _GtkWindow *parent, struct _CamelFolder *folder, const gchar *uri); +void em_folder_properties_show(GtkWindow *parent, CamelFolder *folder, const gchar *uri); G_END_DECLS diff --git a/mail/em-folder-selection.h b/mail/em-folder-selection.h index 8a15526a64..af3243fdd5 100644 --- a/mail/em-folder-selection.h +++ b/mail/em-folder-selection.h @@ -24,13 +24,12 @@ #ifndef EM_FOLDER_SELECTION_H #define EM_FOLDER_SELECTION_H -G_BEGIN_DECLS - +#include #include "em-folder-tree.h" -struct _GtkWindow; +G_BEGIN_DECLS -void em_select_folder (struct _GtkWindow *parent_window, const gchar *title, const gchar *oklabel, const gchar *default_uri, +void em_select_folder (GtkWindow *parent_window, const gchar *title, const gchar *oklabel, const gchar *default_uri, EMFTExcludeFunc exclude, void (*done)(const gchar *uri, gpointer data), gpointer data); diff --git a/mail/em-folder-selector.h b/mail/em-folder-selector.h index 5ac7152d61..f358fc059d 100644 --- a/mail/em-folder-selector.h +++ b/mail/em-folder-selector.h @@ -26,17 +26,14 @@ #include -#ifdef cplusplus -extern "C" { -#pragma } -#endif /* cplusplus */ - #define EM_TYPE_FOLDER_SELECTOR (em_folder_selector_get_type ()) #define EM_FOLDER_SELECTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EM_TYPE_FOLDER_SELECTOR, EMFolderSelector)) #define EM_FOLDER_SELECTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EM_TYPE_FOLDER_SELECTOR, EMFolderSelectorClass)) #define EM_IS_FOLDER_SELECTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EM_TYPE_FOLDER_SELECTOR)) #define EM_IS_FOLDER_SELECTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), EM_TYPE_FOLDER_SELECTOR)) +G_BEGIN_DECLS + typedef struct _EMFolderSelector EMFolderSelector; typedef struct _EMFolderSelectorPrivate EMFolderSelectorPrivate; typedef struct _EMFolderSelectorClass EMFolderSelectorClass; @@ -47,7 +44,7 @@ struct _EMFolderSelector { guint32 flags; struct _EMFolderTree *emft; - struct _GtkEntry *name_entry; + GtkEntry *name_entry; gchar *selected_path; gchar *selected_uri; @@ -87,8 +84,6 @@ const gchar *em_folder_selector_get_selected_path (EMFolderSelector *emfs); GList *em_folder_selector_get_selected_uris (EMFolderSelector *emfs); GList *em_folder_selector_get_selected_paths (EMFolderSelector *emfs); -#ifdef cplusplus -} -#endif /* cplusplus */ +G_END_DECLS #endif /* EM_FOLDER_SELECTOR_H */ diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c index aa977ad3e7..e9c5b35d1d 100644 --- a/mail/em-folder-tree-model.c +++ b/mail/em-folder-tree-model.c @@ -450,7 +450,7 @@ em_folder_tree_model_set_folder_info (EMFolderTreeModel *model, GtkTreeIter *ite GtkTreePath *path; GtkTreeIter sub; gboolean load = FALSE, is_drafts = FALSE, is_templates = FALSE; - struct _CamelFolder *folder; + CamelFolder *folder; gboolean emitted = FALSE; const gchar *name; const gchar *icon_name; diff --git a/mail/em-folder-view.h b/mail/em-folder-view.h index c9202dcfa3..bb25f390ea 100644 --- a/mail/em-folder-view.h +++ b/mail/em-folder-view.h @@ -24,7 +24,13 @@ #define EM_FOLDER_VIEW_H #include +#include + +#include "mail/em-format-html-display.h" +#include "mail/em-menu.h" #include "mail/em-popup.h" +#include "mail/mail-mt.h" +#include "mail/message-list.h" /* Standard GObject macros */ #define EM_TYPE_FOLDER_VIEW \ @@ -47,11 +53,6 @@ G_BEGIN_DECLS -struct _MessageList; -struct _EMFormatHTMLDisplay; -struct _CamelFolder; -struct _CamelMedium; - typedef struct _EMFolderView EMFolderView; typedef struct _EMFolderViewClass EMFolderViewClass; @@ -80,11 +81,11 @@ struct _EMFolderView { struct _EMFolderViewPrivate *priv; - struct _MessageList *list; + MessageList *list; - struct _EMFormatHTMLDisplay *preview; + EMFormatHTMLDisplay *preview; - struct _CamelFolder *folder; + CamelFolder *folder; gchar *folder_uri; gchar *displayed_uid; /* only used to stop re-loads, don't use it to represent any selection state */ @@ -94,12 +95,12 @@ struct _EMFolderView { const gchar *ui_app_name; /* used to manage some menus, particularly plugins */ - struct _EMMenu *menu; + EMMenu *menu; /* for proxying jobs to main or other threads */ - struct _MailAsyncEvent *async; + MailAsyncEvent *async; - struct _BonoboUIComponent *uic; /* if we're active, this will be set */ + BonoboUIComponent *uic; /* if we're active, this will be set */ GSList *enable_map; /* bonobo menu enable map, entries are 0-terminated EMFolderViewEnable arryas TODO: should this be on class? */ @@ -118,10 +119,10 @@ struct _EMFolderViewClass { guint update_message_style:1; /* if used as a control, used to activate/deactivate custom menu's */ - void (*activate)(EMFolderView *, struct _BonoboUIComponent *uic, gint state); + void (*activate)(EMFolderView *, BonoboUIComponent *uic, gint state); void (*set_folder_uri)(EMFolderView *emfv, const gchar *uri); - void (*set_folder)(EMFolderView *emfv, struct _CamelFolder *folder, const gchar *uri); + void (*set_folder)(EMFolderView *emfv, CamelFolder *folder, const gchar *uri); void (*set_message)(EMFolderView *emfv, const gchar *uid, gint nomarkseen); void (*show_search_bar)(EMFolderView *emfv); diff --git a/mail/em-format-hook.c b/mail/em-format-hook.c index 61cc515684..dd61fd6520 100644 --- a/mail/em-format-hook.c +++ b/mail/em-format-hook.c @@ -64,7 +64,7 @@ static const EPluginHookTargetKey emfh_flag_map[] = { }; static void -emfh_format_format(EMFormat *md, struct _CamelStream *stream, struct _CamelMimePart *part, const EMFormatHandler *info) +emfh_format_format(EMFormat *md, CamelStream *stream, CamelMimePart *part, const EMFormatHandler *info) { struct _EMFormatHookItem *item = (EMFormatHookItem *)info; diff --git a/mail/em-format-hook.h b/mail/em-format-hook.h index 3f02167e58..8312404451 100644 --- a/mail/em-format-hook.h +++ b/mail/em-format-hook.h @@ -43,8 +43,8 @@ typedef void (*EMFormatHookFunc)(struct _EPlugin *plugin, EMFormatHookTarget *da struct _EMFormatHookTarget { struct _EMFormat *format; - struct _CamelStream *stream; - struct _CamelMimePart *part; + CamelStream *stream; + CamelMimePart *part; struct _EMFormatHookItem *item; }; diff --git a/mail/em-format-html-display.h b/mail/em-format-html-display.h index 16bafc30fb..d85809f0b0 100644 --- a/mail/em-format-html-display.h +++ b/mail/em-format-html-display.h @@ -74,7 +74,7 @@ struct _EMFormatHTMLDisplayClass { /* a link clicked normally */ void (*link_clicked)(EMFormatHTMLDisplay *efhd, const gchar *uri); /* a part or a link button pressed event */ - gint (*popup_event)(EMFormatHTMLDisplay *efhd, GdkEventButton *event, const gchar *uri, struct _CamelMimePart *part); + gint (*popup_event)(EMFormatHTMLDisplay *efhd, GdkEventButton *event, const gchar *uri, CamelMimePart *part); /* the mouse is over a link */ void (*on_url)(EMFormatHTMLDisplay *efhd, const gchar *uri); }; diff --git a/mail/em-format-html.c b/mail/em-format-html.c index c62bd3e569..76ab642c59 100644 --- a/mail/em-format-html.c +++ b/mail/em-format-html.c @@ -94,7 +94,7 @@ struct _EMFormatHTMLCache { }; struct _EMFormatHTMLPrivate { - struct _CamelMimeMessage *last_part; /* not reffed, DO NOT dereference */ + CamelMimeMessage *last_part; /* not reffed, DO NOT dereference */ volatile gint format_id; /* format thread id */ guint format_timeout_id; struct _format_msg *format_timeout_msg; diff --git a/mail/em-format.c b/mail/em-format.c index 99c71ec1e6..3c7c4cdc80 100644 --- a/mail/em-format.c +++ b/mail/em-format.c @@ -62,8 +62,8 @@ This is still kind of yucky, we should maintian a full tree of all this data, along with/as part of the puri tree */ struct _EMFormatCache { - struct _CamelCipherValidity *valid; /* validity copy */ - struct _CamelMimePart *secured; /* encrypted subpart */ + CamelCipherValidity *valid; /* validity copy */ + CamelMimePart *secured; /* encrypted subpart */ guint state:2; /* inline state */ @@ -822,7 +822,7 @@ em_format_redraw (EMFormat *emf) * encrypted messages viewed. **/ void -em_format_set_session(EMFormat *emf, struct _CamelSession *s) +em_format_set_session(EMFormat *emf, CamelSession *s) { if (s) camel_object_ref(s); @@ -1083,7 +1083,7 @@ void em_format_format_error(EMFormat *emf, CamelStream *stream, const gchar *fmt } void -em_format_format_secure(EMFormat *emf, struct _CamelStream *stream, struct _CamelMimePart *part, struct _CamelCipherValidity *valid) +em_format_format_secure(EMFormat *emf, CamelStream *stream, CamelMimePart *part, CamelCipherValidity *valid) { ((EMFormatClass *)G_OBJECT_GET_CLASS(emf))->format_secure(emf, stream, part, valid); diff --git a/mail/em-html-stream.c b/mail/em-html-stream.c index 501a2b7bad..3f0177e7a4 100644 --- a/mail/em-html-stream.c +++ b/mail/em-html-stream.c @@ -147,7 +147,7 @@ emhs_sync_close(CamelStream *stream) } static void -emhs_gtkhtml_destroy(struct _GtkHTML *html, EMHTMLStream *emhs) +emhs_gtkhtml_destroy(GtkHTML *html, EMHTMLStream *emhs) { d(printf("%p: emhs gtkhtml destroy\n", emhs)); emhs->sync.cancel = TRUE; @@ -157,7 +157,7 @@ emhs_gtkhtml_destroy(struct _GtkHTML *html, EMHTMLStream *emhs) /* TODO: Could pass NULL for html_stream, and do a gtk_html_begin on first data -> less flashing */ CamelStream * -em_html_stream_new(struct _GtkHTML *html, struct _GtkHTMLStream *html_stream) +em_html_stream_new(GtkHTML *html, GtkHTMLStream *html_stream) { EMHTMLStream *new; diff --git a/mail/em-html-stream.h b/mail/em-html-stream.h index 1f832fa046..20b781852d 100644 --- a/mail/em-html-stream.h +++ b/mail/em-html-stream.h @@ -31,17 +31,14 @@ G_BEGIN_DECLS #define EM_HTML_STREAM_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), EM_HTML_STREAM_TYPE, EMHTMLStreamClass)) #define EM_IS_HTML_STREAM(o) (CAMEL_CHECK_TYPE((o), EM_HTML_STREAM_TYPE)) -struct _GtkHTML; -struct _GtkHTMLStream; - #include "mail/em-sync-stream.h" typedef struct _EMHTMLStream { EMSyncStream sync; guint destroy_id; - struct _GtkHTML *html; - struct _GtkHTMLStream *html_stream; + GtkHTML *html; + GtkHTMLStream *html_stream; GtkHTMLBeginFlags flags; } EMHTMLStream; @@ -54,7 +51,7 @@ typedef struct { CamelType em_html_stream_get_type (void); /* the html_stream is closed when we are finalised (with an error), or closed (ok) */ -CamelStream *em_html_stream_new(struct _GtkHTML *html, struct _GtkHTMLStream *html_stream); +CamelStream *em_html_stream_new(GtkHTML *html, GtkHTMLStream *html_stream); void em_html_stream_set_flags (EMHTMLStream *emhs, GtkHTMLBeginFlags flags); G_END_DECLS diff --git a/mail/em-icon-stream.c b/mail/em-icon-stream.c index 384d79846f..563853adcf 100644 --- a/mail/em-icon-stream.c +++ b/mail/em-icon-stream.c @@ -238,7 +238,7 @@ emis_sync_close(CamelStream *stream) } static void -emis_image_destroy(struct _GtkImage *image, EMIconStream *emis) +emis_image_destroy(GtkImage *image, EMIconStream *emis) { emis_cleanup(emis); } diff --git a/mail/em-icon-stream.h b/mail/em-icon-stream.h index 17d4246059..a06b30d4de 100644 --- a/mail/em-icon-stream.h +++ b/mail/em-icon-stream.h @@ -23,17 +23,14 @@ #ifndef EM_ICON_STREAM_H #define EM_ICON_STREAM_H -G_BEGIN_DECLS +#include "mail/em-sync-stream.h" #define EM_ICON_STREAM_TYPE (em_icon_stream_get_type ()) #define EM_ICON_STREAM(obj) (CAMEL_CHECK_CAST((obj), EM_ICON_STREAM_TYPE, EMIconStream)) #define EM_ICON_STREAM_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), EM_ICON_STREAM_TYPE, EMIconStreamClass)) #define EM_IS_ICON_STREAM(o) (CAMEL_CHECK_TYPE((o), EM_ICON_STREAM_TYPE)) -struct _GtkHTML; -struct _GtkIconStream; - -#include "mail/em-sync-stream.h" +G_BEGIN_DECLS typedef struct _EMIconStream { EMSyncStream sync; @@ -41,7 +38,7 @@ typedef struct _EMIconStream { guint width, height; guint destroy_id; struct _GdkPixbufLoader *loader; - struct _GtkImage *image; + GtkImage *image; gchar *key; guint keep:1; diff --git a/mail/em-inline-filter.h b/mail/em-inline-filter.h index b0af215e22..ac1779f8f0 100644 --- a/mail/em-inline-filter.h +++ b/mail/em-inline-filter.h @@ -26,6 +26,7 @@ #include #include +#include #define EM_INLINE_FILTER_TYPE (em_inline_filter_get_type ()) #define EM_INLINE_FILTER(obj) (CAMEL_CHECK_CAST((obj), EM_INLINE_FILTER_TYPE, EMInlineFilter)) @@ -53,7 +54,7 @@ typedef struct _EMInlineFilterClass { CamelType em_inline_filter_get_type(void); EMInlineFilter *em_inline_filter_new(CamelTransferEncoding base_encoding, CamelContentType *type); -struct _CamelMultipart *em_inline_filter_get_multipart(EMInlineFilter *emif); +CamelMultipart *em_inline_filter_get_multipart(EMInlineFilter *emif); G_END_DECLS diff --git a/mail/em-junk-hook.h b/mail/em-junk-hook.h index 1f66518e96..39d18421ef 100644 --- a/mail/em-junk-hook.h +++ b/mail/em-junk-hook.h @@ -27,6 +27,7 @@ #include "e-util/e-plugin.h" #include +#include G_BEGIN_DECLS @@ -46,7 +47,7 @@ GQuark em_junk_error_quark (void); #define EM_JUNK_ERROR em_junk_error_quark () struct _EMJunkHookTarget { - struct _CamelMimeMessage *m; + CamelMimeMessage *m; GError *error; }; diff --git a/mail/em-mailer-prefs.c b/mail/em-mailer-prefs.c index 12b2996b70..a76af74b1c 100644 --- a/mail/em-mailer-prefs.c +++ b/mail/em-mailer-prefs.c @@ -1011,7 +1011,7 @@ http_images_changed (GtkWidget *widget, EMMailerPrefs *prefs) static GtkWidget * -emmp_widget_glade(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data) +emmp_widget_glade(EConfig *ec, EConfigItem *item, GtkWidget *parent, GtkWidget *old, gpointer data) { EMMailerPrefs *prefs = data; diff --git a/mail/em-mailer-prefs.h b/mail/em-mailer-prefs.h index c556951bea..f9f36662ff 100644 --- a/mail/em-mailer-prefs.h +++ b/mail/em-mailer-prefs.h @@ -25,20 +25,8 @@ #include #include - -struct _ESignature; -struct _GtkToggleButton; -struct _GtkOptionMenu; -struct _GtkComboBox; -struct _GdkPixbuf; -struct _GtkWidget; -struct _GladeXML; -struct _GtkFileChooserbutton; -struct _GtkFontButton; -struct _GConfClient; -struct _GtkButton; -struct _GtkTreeView; -struct _GtkWindow; +#include +#include #define EM_MAILER_PREFS_TYPE (em_mailer_prefs_get_type ()) #define EM_MAILER_PREFS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EM_MAILER_PREFS_TYPE, EMMailerPrefs)) @@ -69,70 +57,70 @@ struct _EMMailerPrefs { /* General tab */ /* Message Display */ - struct _GtkToggleButton *timeout_toggle; - struct _GtkSpinButton *timeout; - struct _GtkToggleButton *address_toggle; - struct _GtkSpinButton *address_count; - struct _GtkToggleButton *mlimit_toggle; - struct _GtkSpinButton *mlimit_count; - struct _GtkOptionMenu *charset; - struct _GtkToggleButton *citation_highlight; - struct _GtkColorButton *citation_color; - struct _GtkToggleButton *enable_search_folders; - struct _GtkToggleButton *magic_spacebar; + GtkToggleButton *timeout_toggle; + GtkSpinButton *timeout; + GtkToggleButton *address_toggle; + GtkSpinButton *address_count; + GtkToggleButton *mlimit_toggle; + GtkSpinButton *mlimit_count; + GtkOptionMenu *charset; + GtkToggleButton *citation_highlight; + GtkColorButton *citation_color; + GtkToggleButton *enable_search_folders; + GtkToggleButton *magic_spacebar; /* Deleting Mail */ - struct _GtkToggleButton *empty_trash; - struct _GtkComboBox *empty_trash_days; - struct _GtkToggleButton *confirm_expunge; + GtkToggleButton *empty_trash; + GtkComboBox *empty_trash_days; + GtkToggleButton *confirm_expunge; /* HTML Mail tab */ - struct _GtkFontButton *font_variable; - struct _GtkFontButton *font_fixed; - struct _GtkToggleButton *font_share; + GtkFontButton *font_variable; + GtkFontButton *font_fixed; + GtkToggleButton *font_share; /* Loading Images */ - struct _GtkToggleButton *images_always; - struct _GtkToggleButton *images_sometimes; - struct _GtkToggleButton *images_never; + GtkToggleButton *images_always; + GtkToggleButton *images_sometimes; + GtkToggleButton *images_never; - struct _GtkToggleButton *show_animated; - struct _GtkToggleButton *autodetect_links; - struct _GtkToggleButton *prompt_unwanted_html; + GtkToggleButton *show_animated; + GtkToggleButton *autodetect_links; + GtkToggleButton *prompt_unwanted_html; /* Labels and Colours tab */ - struct _GtkWidget *label_add; - struct _GtkWidget *label_edit; - struct _GtkWidget *label_remove; - struct _GtkWidget *label_tree; + GtkWidget *label_add; + GtkWidget *label_edit; + GtkWidget *label_remove; + GtkWidget *label_tree; guint labels_change_notify_id; /* mail_config's notify id */ /* Headers tab */ - struct _GtkButton *add_header; - struct _GtkButton *remove_header; - struct _GtkEntry *entry_header; - struct _GtkTreeView *header_list; - struct _GtkListStore *header_list_store; - struct _GtkToggleButton *photo_show; - struct _GtkToggleButton *photo_local; + GtkButton *add_header; + GtkButton *remove_header; + GtkEntry *entry_header; + GtkTreeView *header_list; + GtkListStore *header_list_store; + GtkToggleButton *photo_show; + GtkToggleButton *photo_local; /* Junk prefs */ - struct _GtkToggleButton *check_incoming; - struct _GtkToggleButton *empty_junk; - struct _GtkComboBox *empty_junk_days; - - struct _GtkToggleButton *sa_local_tests_only; - struct _GtkToggleButton *sa_use_daemon; - struct _GtkComboBox *default_junk_plugin; - struct _GtkLabel *plugin_status; - struct _GtkImage *plugin_image; - - struct _GtkToggleButton *junk_header_check; - struct _GtkTreeView *junk_header_tree; - struct _GtkButton *junk_header_add; - struct _GtkButton *junk_header_remove; - struct _GtkToggleButton *junk_book_lookup; - struct _GtkToggleButton *junk_lookup_local_only; + GtkToggleButton *check_incoming; + GtkToggleButton *empty_junk; + GtkComboBox *empty_junk_days; + + GtkToggleButton *sa_local_tests_only; + GtkToggleButton *sa_use_daemon; + GtkComboBox *default_junk_plugin; + GtkLabel *plugin_status; + GtkImage *plugin_image; + + GtkToggleButton *junk_header_check; + GtkTreeView *junk_header_tree; + GtkButton *junk_header_add; + GtkButton *junk_header_remove; + GtkToggleButton *junk_book_lookup; + GtkToggleButton *junk_lookup_local_only; }; struct _EMMailerPrefsClass { @@ -145,7 +133,7 @@ struct _EMMailerPrefsClass { GType em_mailer_prefs_get_type (void); GtkWidget * create_combo_text_widget (void); -struct _GtkWidget *em_mailer_prefs_new (void); +GtkWidget *em_mailer_prefs_new (void); EMMailerPrefsHeader *em_mailer_prefs_header_from_xml(const gchar *xml); gchar *em_mailer_prefs_header_to_xml(EMMailerPrefsHeader *header); diff --git a/mail/em-menu.c b/mail/em-menu.c index f0da9c8820..bb8063e7dc 100644 --- a/mail/em-menu.c +++ b/mail/em-menu.c @@ -134,7 +134,7 @@ EMMenu *em_menu_new(const gchar *menuid) * Return value: **/ EMMenuTargetSelect * -em_menu_target_new_select(EMMenu *emp, struct _CamelFolder *folder, const gchar *folder_uri, GPtrArray *uids) +em_menu_target_new_select(EMMenu *emp, CamelFolder *folder, const gchar *folder_uri, GPtrArray *uids) { EMMenuTargetSelect *t = e_menu_target_new(&emp->popup, EM_MENU_TARGET_SELECT, sizeof(*t)); guint32 mask = ~0; @@ -231,7 +231,7 @@ em_menu_target_new_select(EMMenu *emp, struct _CamelFolder *folder, const gchar * Return value: **/ EMMenuTargetWidget * -em_menu_target_new_widget(EMMenu *emp, struct _GtkWidget *w) +em_menu_target_new_widget(EMMenu *emp, GtkWidget *w) { EMMenuTargetWidget *t = e_menu_target_new(&emp->popup, EM_MENU_TARGET_WIDGET, sizeof(*t)); guint32 mask = ~0; diff --git a/mail/em-menu.h b/mail/em-menu.h index 3e7ca19aed..b2e66916e3 100644 --- a/mail/em-menu.h +++ b/mail/em-menu.h @@ -25,6 +25,7 @@ #define __EM_MENU_H__ #include +#include #include "e-util/e-menu.h" @@ -69,7 +70,7 @@ typedef struct _EMMenuTargetSelect EMMenuTargetSelect; struct _EMMenuTargetSelect { EMenuTarget target; - struct _CamelFolder *folder; + CamelFolder *folder; gchar *uri; GPtrArray *uids; }; @@ -97,8 +98,8 @@ GType em_menu_get_type(void); EMMenu *em_menu_new(const gchar *menuid); -EMMenuTargetSelect *em_menu_target_new_select(EMMenu *emp, struct _CamelFolder *folder, const gchar *folder_uri, GPtrArray *uids); -EMMenuTargetWidget *em_menu_target_new_widget(EMMenu *emp, struct _GtkWidget *w); +EMMenuTargetSelect *em_menu_target_new_select(EMMenu *emp, CamelFolder *folder, const gchar *folder_uri, GPtrArray *uids); +EMMenuTargetWidget *em_menu_target_new_widget(EMMenu *emp, GtkWidget *w); /* ********************************************************************** */ diff --git a/mail/em-network-prefs.c b/mail/em-network-prefs.c index 47df87a062..235994aadd 100644 --- a/mail/em-network-prefs.c +++ b/mail/em-network-prefs.c @@ -161,7 +161,7 @@ toggle_button_init (EMNetworkPrefs *prefs, GtkToggleButton *toggle, const gchar } static GtkWidget * -emnp_widget_glade(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data) +emnp_widget_glade(EConfig *ec, EConfigItem *item, GtkWidget *parent, GtkWidget *old, gpointer data) { EMNetworkPrefs *prefs = data; diff --git a/mail/em-network-prefs.h b/mail/em-network-prefs.h index 79b22c5a92..71031fbe35 100644 --- a/mail/em-network-prefs.h +++ b/mail/em-network-prefs.h @@ -24,6 +24,8 @@ #define __EM_NETWORK_PREFS_H__ #include +#include +#include #define EM_NETWORK_PREFS_TYPE (em_network_prefs_get_type ()) #define EM_NETWORK_PREFS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EM_NETWORK_PREFS_TYPE, EMNetworkPrefs)) @@ -36,11 +38,6 @@ G_BEGIN_DECLS typedef struct _EMNetworkPrefs EMNetworkPrefs; typedef struct _EMNetworkPrefsClass EMNetworkPrefsClass; -struct _GtkToggleButton; -struct _GtkEntry; -struct _GladeXML; -struct _GConfClient; - typedef enum { NETWORK_PROXY_SYS_SETTINGS, NETWORK_PROXY_DIRECT_CONNECTION, @@ -52,43 +49,43 @@ typedef enum { struct _EMNetworkPrefs { GtkVBox parent_object; - struct _GConfClient *gconf; + GConfClient *gconf; - struct _GladeXML *gui; + GladeXML *gui; /* Default Behavior */ - struct _GtkToggleButton *sys_proxy; - struct _GtkToggleButton *no_proxy; - struct _GtkToggleButton *manual_proxy; + GtkToggleButton *sys_proxy; + GtkToggleButton *no_proxy; + GtkToggleButton *manual_proxy; #if 0 - struct _GtkToggleButton *auto_proxy; + GtkToggleButton *auto_proxy; #endif - struct _GtkToggleButton *use_auth; + GtkToggleButton *use_auth; - struct _GtkEntry *http_host; - struct _GtkEntry *https_host; - struct _GtkEntry *ignore_hosts; + GtkEntry *http_host; + GtkEntry *https_host; + GtkEntry *ignore_hosts; #if 0 - struct _GtkEntry *auto_proxy_url; + GtkEntry *auto_proxy_url; #endif - struct _GtkEntry *auth_user; - struct _GtkEntry *auth_pwd; - - struct _GtkLabel *lbl_http_host; - struct _GtkLabel *lbl_http_port; - struct _GtkLabel *lbl_https_host; - struct _GtkLabel *lbl_https_port; - struct _GtkLabel *lbl_ignore_hosts; - struct _GtkLabel *lbl_auth_user; - struct _GtkLabel *lbl_auth_pwd; - - struct _GtkSpinButton *http_port; - struct _GtkSpinButton *https_port; + GtkEntry *auth_user; + GtkEntry *auth_pwd; + + GtkLabel *lbl_http_host; + GtkLabel *lbl_http_port; + GtkLabel *lbl_https_host; + GtkLabel *lbl_https_port; + GtkLabel *lbl_ignore_hosts; + GtkLabel *lbl_auth_user; + GtkLabel *lbl_auth_pwd; + + GtkSpinButton *http_port; + GtkSpinButton *https_port; #if 0 - struct _GtkLabel *lbl_socks_host; - struct _GtkEntry *socks_host; - struct _GtkLabel *lbl_socks_port; - struct _GtkSpinButton *socks_port; + GtkLabel *lbl_socks_host; + GtkEntry *socks_host; + GtkLabel *lbl_socks_port; + GtkSpinButton *socks_port; #endif }; @@ -101,7 +98,7 @@ struct _EMNetworkPrefsClass { GType em_network_prefs_get_type (void); -struct _GtkWidget *em_network_prefs_new (void); +GtkWidget *em_network_prefs_new (void); /* needed by global config */ #define EM_NETWORK_PREFS_CONTROL_ID "OAFIID:GNOME_Evolution_Mail_NetworkPrefs_ConfigControl:" BASE_VERSION diff --git a/mail/em-popup.c b/mail/em-popup.c index 5caabca171..4f6b7ededf 100644 --- a/mail/em-popup.c +++ b/mail/em-popup.c @@ -155,7 +155,7 @@ EMPopup *em_popup_new(const gchar *menuid) * Return value: **/ EMPopupTargetSelect * -em_popup_target_new_select(EMPopup *emp, struct _CamelFolder *folder, const gchar *folder_uri, GPtrArray *uids) +em_popup_target_new_select(EMPopup *emp, CamelFolder *folder, const gchar *folder_uri, GPtrArray *uids) { EMPopupTargetSelect *t = e_popup_target_new(&emp->popup, EM_POPUP_TARGET_SELECT, sizeof(*t)); CamelStore *store = CAMEL_STORE (folder->parent_store); @@ -273,7 +273,7 @@ em_popup_target_new_uri(EMPopup *emp, const gchar *uri) } EMPopupTargetPart * -em_popup_target_new_part(EMPopup *emp, struct _CamelMimePart *part, const gchar *mime_type) +em_popup_target_new_part(EMPopup *emp, CamelMimePart *part, const gchar *mime_type) { EMPopupTargetPart *t = e_popup_target_new(&emp->popup, EM_POPUP_TARGET_PART, sizeof(*t)); guint32 mask = ~0; diff --git a/mail/em-popup.h b/mail/em-popup.h index cdac00becc..f7182e9358 100644 --- a/mail/em-popup.h +++ b/mail/em-popup.h @@ -25,6 +25,7 @@ #define __EM_POPUP_H__ #include +#include #include "e-util/e-popup.h" @@ -183,7 +184,7 @@ struct _EMPopupTargetURI { **/ struct _EMPopupTargetSelect { EPopupTarget target; - struct _CamelFolder *folder; + CamelFolder *folder; gchar *uri; GPtrArray *uids; }; @@ -202,7 +203,7 @@ struct _EMPopupTargetSelect { struct _EMPopupTargetPart { EPopupTarget target; gchar *mime_type; - struct _CamelMimePart *part; + CamelMimePart *part; }; /** @@ -236,8 +237,8 @@ GType em_popup_get_type(void); EMPopup *em_popup_new(const gchar *menuid); EMPopupTargetURI *em_popup_target_new_uri(EMPopup *emp, const gchar *uri); -EMPopupTargetSelect *em_popup_target_new_select(EMPopup *emp, struct _CamelFolder *folder, const gchar *folder_uri, GPtrArray *uids); -EMPopupTargetPart *em_popup_target_new_part(EMPopup *emp, struct _CamelMimePart *part, const gchar *mime_type); +EMPopupTargetSelect *em_popup_target_new_select(EMPopup *emp, CamelFolder *folder, const gchar *folder_uri, GPtrArray *uids); +EMPopupTargetPart *em_popup_target_new_part(EMPopup *emp, CamelMimePart *part, const gchar *mime_type); EMPopupTargetFolder *em_popup_target_new_folder(EMPopup *emp, const gchar *uri, guint32 info_flags, guint32 popup_flags); /* ********************************************************************** */ diff --git a/mail/em-utils.c b/mail/em-utils.c index 207c96718a..1e285bc351 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -84,7 +84,7 @@ static void emu_save_part_done (CamelMimePart *part, gchar *name, gint done, gpointer data); -extern struct _CamelSession *session; +extern CamelSession *session; #define d(x) @@ -681,7 +681,7 @@ emu_add_address_cb(BonoboListener *listener, const gchar *name, const CORBA_any /* one of email or vcard should be always NULL, never both of them */ static void -emu_add_address_or_vcard (struct _GtkWidget *parent, const gchar *email, const gchar *vcard) +emu_add_address_or_vcard (GtkWidget *parent, const gchar *email, const gchar *vcard) { GtkWidget *win; GtkWidget *control; @@ -742,7 +742,7 @@ emu_add_address_or_vcard (struct _GtkWidget *parent, const gchar *email, const g * Add address @email to the addressbook. **/ void -em_utils_add_address (struct _GtkWidget *parent, const gchar *email) +em_utils_add_address (GtkWidget *parent, const gchar *email) { emu_add_address_or_vcard (parent, email, NULL); } @@ -752,7 +752,7 @@ em_utils_add_address (struct _GtkWidget *parent, const gchar *email) * Adds whole vCard to the addressbook. **/ void -em_utils_add_vcard (struct _GtkWidget *parent, const gchar *vcard) +em_utils_add_vcard (GtkWidget *parent, const gchar *vcard) { emu_add_address_or_vcard (parent, NULL, vcard); } @@ -2191,8 +2191,8 @@ em_utils_in_addressbook (CamelInternetAddress *iaddr, gboolean local_only) return found; } -struct _CamelMimePart * -em_utils_contact_photo (struct _CamelInternetAddress *cia, gboolean local) +CamelMimePart * +em_utils_contact_photo (CamelInternetAddress *cia, gboolean local) { const gchar *addr; gint stop = FALSE, found = FALSE; diff --git a/mail/em-utils.h b/mail/em-utils.h index 523d350b51..22b47b5be2 100644 --- a/mail/em-utils.h +++ b/mail/em-utils.h @@ -23,76 +23,65 @@ #ifndef __EM_UTILS_H__ #define __EM_UTILS_H__ -#include - -G_BEGIN_DECLS - +#include #include -struct _GtkWidget; -struct _GtkWindow; -struct _CamelFolder; -struct _CamelInternetAddress; -struct _CamelStream; -struct _CamelMimeMessage; -struct _CamelMimePart; -struct _GtkSelectionData; -struct _GtkAdjustment; -struct _CamelException; -struct _EMFormat; +#include + +G_BEGIN_DECLS -gboolean em_utils_prompt_user(struct _GtkWindow *parent, const gchar *promptkey, const gchar *tag, const gchar *arg0, ...); +gboolean em_utils_prompt_user(GtkWindow *parent, const gchar *promptkey, const gchar *tag, const gchar *arg0, ...); GPtrArray *em_utils_uids_copy (GPtrArray *uids); void em_utils_uids_free (GPtrArray *uids); -gboolean em_utils_configure_account (struct _GtkWidget *parent); -gboolean em_utils_check_user_can_send_mail (struct _GtkWidget *parent); +gboolean em_utils_configure_account (GtkWidget *parent); +gboolean em_utils_check_user_can_send_mail (GtkWidget *parent); -void em_utils_edit_filters (struct _GtkWidget *parent); +void em_utils_edit_filters (GtkWidget *parent); void em_filename_make_safe (gchar *string); -void em_utils_edit_vfolders (struct _GtkWidget *parent); +void em_utils_edit_vfolders (GtkWidget *parent); -void em_utils_save_part(struct _GtkWidget *parent, const gchar *prompt, struct _CamelMimePart *part); -gboolean em_utils_save_part_to_file(struct _GtkWidget *parent, const gchar *filename, struct _CamelMimePart *part); -void em_utils_save_messages (struct _GtkWidget *parent, struct _CamelFolder *folder, GPtrArray *uids); +void em_utils_save_part(GtkWidget *parent, const gchar *prompt, CamelMimePart *part); +gboolean em_utils_save_part_to_file(GtkWidget *parent, const gchar *filename, CamelMimePart *part); +void em_utils_save_messages (GtkWidget *parent, CamelFolder *folder, GPtrArray *uids); -void em_utils_add_address(struct _GtkWidget *parent, const gchar *email); -void em_utils_add_vcard(struct _GtkWidget *parent, const gchar *vcard); +void em_utils_add_address(GtkWidget *parent, const gchar *email); +void em_utils_add_vcard(GtkWidget *parent, const gchar *vcard); -void em_utils_flag_for_followup (struct _GtkWidget *parent, struct _CamelFolder *folder, GPtrArray *uids); -void em_utils_flag_for_followup_clear (struct _GtkWidget *parent, struct _CamelFolder *folder, GPtrArray *uids); -void em_utils_flag_for_followup_completed (struct _GtkWidget *parent, struct _CamelFolder *folder, GPtrArray *uids); +void em_utils_flag_for_followup (GtkWidget *parent, CamelFolder *folder, GPtrArray *uids); +void em_utils_flag_for_followup_clear (GtkWidget *parent, CamelFolder *folder, GPtrArray *uids); +void em_utils_flag_for_followup_completed (GtkWidget *parent, CamelFolder *folder, GPtrArray *uids); /* This stuff that follows probably doesn't belong here, then again, the stuff above probably belongs elsewhere */ -void em_utils_selection_set_mailbox(struct _GtkSelectionData *data, struct _CamelFolder *folder, GPtrArray *uids); -void em_utils_selection_get_mailbox(struct _GtkSelectionData *data, struct _CamelFolder *folder); -void em_utils_selection_get_message(struct _GtkSelectionData *data, struct _CamelFolder *folder); -/* FIXME: be nice if these also worked on struct _CamelFolder's, no easy way to get uri from folder yet tho */ -void em_utils_selection_set_uidlist(struct _GtkSelectionData *data, const gchar *uri, GPtrArray *uids); -void em_utils_selection_get_uidlist(struct _GtkSelectionData *data, struct _CamelFolder *dest, gint move, struct _CamelException *ex); -void em_utils_selection_set_urilist(struct _GtkSelectionData *data, struct _CamelFolder *folder, GPtrArray *uids); -void em_utils_selection_get_urilist(struct _GtkSelectionData *data, struct _CamelFolder *folder); +void em_utils_selection_set_mailbox(GtkSelectionData *data, CamelFolder *folder, GPtrArray *uids); +void em_utils_selection_get_mailbox(GtkSelectionData *data, CamelFolder *folder); +void em_utils_selection_get_message(GtkSelectionData *data, CamelFolder *folder); +/* FIXME: be nice if these also worked on CamelFolder's, no easy way to get uri from folder yet tho */ +void em_utils_selection_set_uidlist(GtkSelectionData *data, const gchar *uri, GPtrArray *uids); +void em_utils_selection_get_uidlist(GtkSelectionData *data, CamelFolder *dest, gint move, CamelException *ex); +void em_utils_selection_set_urilist(GtkSelectionData *data, CamelFolder *folder, GPtrArray *uids); +void em_utils_selection_get_urilist(GtkSelectionData *data, CamelFolder *folder); -gchar *em_utils_temp_save_part(struct _GtkWidget *parent, struct _CamelMimePart *part, gboolean mode); -void em_utils_save_parts (struct _GtkWidget *parent, const gchar *prompt, GSList * parts); +gchar *em_utils_temp_save_part(GtkWidget *parent, CamelMimePart *part, gboolean mode); +void em_utils_save_parts (GtkWidget *parent, const gchar *prompt, GSList * parts); -gboolean em_utils_folder_is_drafts(struct _CamelFolder *folder, const gchar *uri); -gboolean em_utils_folder_is_templates(struct _CamelFolder *folder, const gchar *uri); -gboolean em_utils_folder_is_sent(struct _CamelFolder *folder, const gchar *uri); -gboolean em_utils_folder_is_outbox(struct _CamelFolder *folder, const gchar *uri); +gboolean em_utils_folder_is_drafts(CamelFolder *folder, const gchar *uri); +gboolean em_utils_folder_is_templates(CamelFolder *folder, const gchar *uri); +gboolean em_utils_folder_is_sent(CamelFolder *folder, const gchar *uri); +gboolean em_utils_folder_is_outbox(CamelFolder *folder, const gchar *uri); -void em_utils_adjustment_page(struct _GtkAdjustment *adj, gboolean down); +void em_utils_adjustment_page(GtkAdjustment *adj, gboolean down); gchar *em_utils_get_proxy_uri (const gchar *uri); /* FIXME: should this have an override charset? */ -gchar *em_utils_part_to_html(struct _CamelMimePart *part, gssize *len, struct _EMFormat *source); -gchar *em_utils_message_to_html(struct _CamelMimeMessage *msg, const gchar *credits, guint32 flags, gssize *len, struct _EMFormat *source, const gchar *append); +gchar *em_utils_part_to_html(CamelMimePart *part, gssize *len, EMFormat *source); +gchar *em_utils_message_to_html(CamelMimeMessage *msg, const gchar *credits, guint32 flags, gssize *len, EMFormat *source, const gchar *append); -void em_utils_expunge_folder (struct _GtkWidget *parent, struct _CamelFolder *folder); -void em_utils_empty_trash (struct _GtkWidget *parent); +void em_utils_expunge_folder (GtkWidget *parent, CamelFolder *folder); +void em_utils_empty_trash (GtkWidget *parent); /* returns the folder name portion of an URI */ gchar *em_utils_folder_name_from_uri (const gchar *uri); @@ -102,14 +91,14 @@ gchar *em_uri_from_camel (const gchar *curi); gchar *em_uri_to_camel (const gchar *euri); /* Run errors silently on the status bar */ -void em_utils_show_error_silent (struct _GtkWidget *widget); -void em_utils_show_info_silent (struct _GtkWidget *widget); +void em_utils_show_error_silent (GtkWidget *widget); +void em_utils_show_info_silent (GtkWidget *widget); /* is this address in the addressbook? caches results */ -gboolean em_utils_in_addressbook (struct _CamelInternetAddress *addr, gboolean local_only); -struct _CamelMimePart *em_utils_contact_photo (struct _CamelInternetAddress *addr, gboolean local); +gboolean em_utils_in_addressbook (CamelInternetAddress *addr, gboolean local_only); +CamelMimePart *em_utils_contact_photo (CamelInternetAddress *addr, gboolean local); -const gchar *em_utils_snoop_type(struct _CamelMimePart *part); +const gchar *em_utils_snoop_type(CamelMimePart *part); /* clears flag 'get_password_canceled' at every known accounts, so if needed, get_password will show dialog */ void em_utils_clear_get_password_canceled_accounts_flag (void); diff --git a/mail/importers/Makefile.am b/mail/importers/Makefile.am index 4faee016da..197415b4ee 100644 --- a/mail/importers/Makefile.am +++ b/mail/importers/Makefile.am @@ -9,6 +9,7 @@ privsolib_LTLIBRARIES = libevolution-mail-importers.la INCLUDES = -I.. \ -I$(srcdir)/.. \ -I$(top_srcdir) \ + -I$(top_srcdir)/widgets \ -DG_LOG_DOMAIN=\"evolution-mail-importer\" \ -DEVOLUTION_PRIVDATADIR=\""$(privdatadir)"\" \ $(IMPORTERS_CFLAGS) diff --git a/mail/importers/mail-importer.h b/mail/importers/mail-importer.h index 92f555cf75..7759a4e4e7 100644 --- a/mail/importers/mail-importer.h +++ b/mail/importers/mail-importer.h @@ -24,10 +24,15 @@ #ifndef __MAIL_IMPORTER_H__ #define __MAIL_IMPORTER_H__ +#include +#include + +#include + typedef struct _MailImporter MailImporter; struct _MailImporter { - struct _CamelFolder *folder; - struct _CamelStreamMem *mstream; + CamelFolder *folder; + CamelStreamMem *mstream; gboolean frozen; /* Is folder frozen? */ }; @@ -47,15 +52,10 @@ void mail_importer_create_folder (const gchar *parent_path, /* creates a folder at folderpath on the local storage */ gchar *mail_importer_make_local_folder(const gchar *folderpath); -struct _BonoboObject; -struct _BonoboGenericFactory; -struct _CamelOperation; -struct _CamelException; - -struct _EImportImporter *mbox_importer_peek(void); +EImportImporter *mbox_importer_peek(void); -struct _EImportImporter *elm_importer_peek(void); -struct _EImportImporter *pine_importer_peek(void); +EImportImporter *elm_importer_peek(void); +EImportImporter *pine_importer_peek(void); #define ELM_INTELLIGENT_IMPORTER_IID "OAFIID:GNOME_Evolution_Mail_Elm_Intelligent_Importer:" BASE_VERSION #define PINE_INTELLIGENT_IMPORTER_IID "OAFIID:GNOME_Evolution_Mail_Pine_Intelligent_Importer:" BASE_VERSION @@ -64,14 +64,14 @@ struct _EImportImporter *pine_importer_peek(void); #define MBOX_IMPORTER_IID "OAFIID:GNOME_Evolution_Mail_Mbox_Importer:" BASE_VERSION #define OUTLOOK_IMPORTER_IID "OAFIID:GNOME_Evolution_Mail_Outlook_Importer:" BASE_VERSION -struct _BonoboObject *elm_intelligent_importer_new(void); -struct _BonoboObject *pine_intelligent_importer_new(void); -struct _BonoboObject *netscape_intelligent_importer_new(void); +BonoboObject *elm_intelligent_importer_new(void); +BonoboObject *pine_intelligent_importer_new(void); +BonoboObject *netscape_intelligent_importer_new(void); -struct _BonoboObject *mbox_importer_new(void); -struct _BonoboObject *outlook_importer_new(void); +BonoboObject *mbox_importer_new(void); +BonoboObject *outlook_importer_new(void); -struct _BonoboObject *mail_importer_factory_cb(struct _BonoboGenericFactory *factory, const gchar *iid, gpointer data); +BonoboObject *mail_importer_factory_cb(BonoboGenericFactory *factory, const gchar *iid, gpointer data); /* Defines copied from nsMsgMessageFlags.h in Mozilla source. */ @@ -81,8 +81,8 @@ struct _BonoboObject *mail_importer_factory_cb(struct _BonoboGenericFactory *fac #define MSG_FLAG_MARKED 0x0004 #define MSG_FLAG_EXPUNGED 0x0008 -gint mail_importer_import_mbox(const gchar *path, const gchar *folderuri, struct _CamelOperation *cancel, void (*done)(gpointer data, struct _CamelException *), gpointer data); -void mail_importer_import_mbox_sync(const gchar *path, const gchar *folderuri, struct _CamelOperation *cancel); +gint mail_importer_import_mbox(const gchar *path, const gchar *folderuri, CamelOperation *cancel, void (*done)(gpointer data, CamelException *), gpointer data); +void mail_importer_import_mbox_sync(const gchar *path, const gchar *folderuri, CamelOperation *cancel); struct _MailImporterSpecial { const gchar *orig, *new; @@ -93,6 +93,6 @@ typedef struct _MailImporterSpecial MailImporterSpecial; #define MAIL_IMPORTER_MOZFMT (1<<0) /* api in flux */ -void mail_importer_import_folders_sync(const gchar *filepath, MailImporterSpecial special_folders[], gint flags, struct _CamelOperation *cancel); +void mail_importer_import_folders_sync(const gchar *filepath, MailImporterSpecial special_folders[], gint flags, CamelOperation *cancel); #endif diff --git a/mail/mail-autofilter.h b/mail/mail-autofilter.h index 67ff5d6310..8ad98589ef 100644 --- a/mail/mail-autofilter.h +++ b/mail/mail-autofilter.h @@ -24,12 +24,11 @@ #ifndef _MAIL_AUTOFILTER_H #define _MAIL_AUTOFILTER_H -struct _FilterRule; -struct _EMVFolderContext; -struct _EMFilterContext; -struct _CamelMimeMessage; -struct _CamelInternetAddress; -struct _CamelStore; +#include + +#include +#include +#include enum { AUTO_SUBJECT = 1, @@ -38,15 +37,15 @@ enum { AUTO_MLIST = 8 }; -struct _FilterRule *em_vfolder_rule_from_message(struct _EMVFolderContext *context, struct _CamelMimeMessage *msg, gint flags, const gchar *source); -struct _FilterRule *filter_rule_from_message(struct _EMFilterContext *context, struct _CamelMimeMessage *msg, gint flags); -struct _FilterRule *em_vfolder_rule_from_address(struct _EMVFolderContext *context, struct _CamelInternetAddress *addr, gint flags, const gchar *source); +FilterRule *em_vfolder_rule_from_message(EMVFolderContext *context, CamelMimeMessage *msg, gint flags, const gchar *source); +FilterRule *filter_rule_from_message(EMFilterContext *context, CamelMimeMessage *msg, gint flags); +FilterRule *em_vfolder_rule_from_address(EMVFolderContext *context, CamelInternetAddress *addr, gint flags, const gchar *source); /* easiest place to put this */ -void filter_gui_add_from_message(struct _CamelMimeMessage *msg, const gchar *source, gint flags); +void filter_gui_add_from_message(CamelMimeMessage *msg, const gchar *source, gint flags); /* Also easiest place for these, we should really share a global rule context for this stuff ... */ -void mail_filter_rename_uri(struct _CamelStore *store, const gchar *olduri, const gchar *newuri); -void mail_filter_delete_uri(struct _CamelStore *store, const gchar *uri); +void mail_filter_rename_uri(CamelStore *store, const gchar *olduri, const gchar *newuri); +void mail_filter_delete_uri(CamelStore *store, const gchar *uri); #endif diff --git a/mail/mail-component.c b/mail/mail-component.c index 8d72fb590c..4b788b3178 100644 --- a/mail/mail-component.c +++ b/mail/mail-component.c @@ -1359,7 +1359,7 @@ mail_component_peek_activity_handler (MailComponent *component) return component->priv->activity_handler; } -struct _CamelSession *mail_component_peek_session(MailComponent *component) +CamelSession *mail_component_peek_session(MailComponent *component) { MAIL_COMPONENT_DEFAULT(component); @@ -1546,7 +1546,7 @@ mail_component_peek_local_store (MailComponent *mc) * * Return value: **/ -struct _CamelFolder * +CamelFolder * mail_component_get_folder(MailComponent *mc, enum _mail_component_folder_t id) { g_return_val_if_fail (id <= MAIL_COMPONENT_FOLDER_LOCAL_INBOX, NULL); diff --git a/mail/mail-component.h b/mail/mail-component.h index ef781d119a..18ec0a7dd9 100644 --- a/mail/mail-component.h +++ b/mail/mail-component.h @@ -28,8 +28,9 @@ #include #include "shell/evolution-component.h" #include "mail/Evolution-Mail.h" - -struct _CamelStore; +#include "mail/em-folder-tree-model.h" +#include "filter/rule-context.h" +#include "misc/e-activity-handler.h" #define MAIL_TYPE_COMPONENT (mail_component_get_type ()) #define MAIL_COMPONENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MAIL_TYPE_COMPONENT, MailComponent)) @@ -68,20 +69,20 @@ MailComponent *mail_component_peek (void); /* NOTE: Using NULL as the component implies using the default component */ const gchar *mail_component_peek_base_directory (MailComponent *component); -struct _RuleContext *mail_component_peek_search_context (MailComponent *component); -struct _EActivityHandler *mail_component_peek_activity_handler (MailComponent *component); +RuleContext *mail_component_peek_search_context (MailComponent *component); +EActivityHandler *mail_component_peek_activity_handler (MailComponent *component); -struct _CamelSession *mail_component_peek_session(MailComponent *); +CamelSession *mail_component_peek_session(MailComponent *); void mail_component_add_store (MailComponent *component, - struct _CamelStore *store, + CamelStore *store, const gchar *name); -struct _CamelStore *mail_component_load_store_by_uri (MailComponent *component, +CamelStore *mail_component_load_store_by_uri (MailComponent *component, const gchar *uri, const gchar *name); void mail_component_remove_store (MailComponent *component, - struct _CamelStore *store); + CamelStore *store); void mail_component_remove_store_by_uri (MailComponent *component, const gchar *uri); @@ -90,12 +91,12 @@ void mail_component_stores_foreach (MailComponent *component, GHFunc func, void *data); -void mail_component_remove_folder (MailComponent *component, struct _CamelStore *store, const gchar *path); +void mail_component_remove_folder (MailComponent *component, CamelStore *store, const gchar *path); -struct _EMFolderTreeModel *mail_component_peek_tree_model (MailComponent *component); +EMFolderTreeModel *mail_component_peek_tree_model (MailComponent *component); -struct _CamelStore *mail_component_peek_local_store (MailComponent *mc); -struct _CamelFolder *mail_component_get_folder(MailComponent *mc, enum _mail_component_folder_t id); +CamelStore *mail_component_peek_local_store (MailComponent *mc); +CamelFolder *mail_component_get_folder(MailComponent *mc, enum _mail_component_folder_t id); const gchar *mail_component_get_folder_uri(MailComponent *mc, enum _mail_component_folder_t id); gint status_check (GNOME_Evolution_ShellState shell_state); diff --git a/mail/mail-config.h b/mail/mail-config.h index 8ebb3dc78c..0b431537bd 100644 --- a/mail/mail-config.h +++ b/mail/mail-config.h @@ -23,22 +23,13 @@ #ifndef MAIL_CONFIG_H #define MAIL_CONFIG_H -#include -#include +#include +#include +#include +#include -#include "camel/camel-provider.h" /* can't forward-declare enums, bah */ - -struct _EAccount; -struct _EAccountList; -struct _EAccountService; - -struct _ESignature; -struct _ESignatureList; - -struct _GConfClient; -struct _GtkWindow; - -struct _CamelFolder; +#include +#include G_BEGIN_DECLS @@ -90,7 +81,7 @@ void mail_config_clear (void); void mail_config_write (void); void mail_config_write_on_exit (void); -struct _GConfClient *mail_config_get_gconf_client (void); +GConfClient *mail_config_get_gconf_client (void); /* General Accessor functions */ gboolean mail_config_is_configured (void); @@ -100,41 +91,41 @@ GSList *mail_config_get_labels (void); const gchar **mail_config_get_allowable_mime_types (void); -void mail_config_service_set_save_passwd (struct _EAccountService *service, gboolean save_passwd); +void mail_config_service_set_save_passwd (EAccountService *service, gboolean save_passwd); /* accounts */ -gboolean mail_config_find_account (struct _EAccount *account); -struct _EAccount *mail_config_get_default_account (void); -struct _EAccount *mail_config_get_account_by_name (const gchar *account_name); -struct _EAccount *mail_config_get_account_by_uid (const gchar *uid); -struct _EAccount *mail_config_get_account_by_source_url (const gchar *url); -struct _EAccount *mail_config_get_account_by_transport_url (const gchar *url); - -struct _EAccountList *mail_config_get_accounts (void); -void mail_config_add_account (struct _EAccount *account); -void mail_config_remove_account (struct _EAccount *account); -void mail_config_set_default_account (struct _EAccount *account); +gboolean mail_config_find_account (EAccount *account); +EAccount *mail_config_get_default_account (void); +EAccount *mail_config_get_account_by_name (const gchar *account_name); +EAccount *mail_config_get_account_by_uid (const gchar *uid); +EAccount *mail_config_get_account_by_source_url (const gchar *url); +EAccount *mail_config_get_account_by_transport_url (const gchar *url); + +EAccountList *mail_config_get_accounts (void); +void mail_config_add_account (EAccount *account); +void mail_config_remove_account (EAccount *account); +void mail_config_set_default_account (EAccount *account); gint mail_config_get_address_count (void); gint mail_config_get_message_limit (void); gboolean mail_config_get_enable_magic_spacebar (void); -void mail_config_remove_account_proxies (struct _EAccount *account); +void mail_config_remove_account_proxies (EAccount *account); void mail_config_prune_proxies (void); -gint mail_config_has_proxies (struct _EAccount *account); +gint mail_config_has_proxies (EAccount *account); -struct _EAccountIdentity *mail_config_get_default_identity (void); -struct _EAccountService *mail_config_get_default_transport (void); +EAccountIdentity *mail_config_get_default_identity (void); +EAccountService *mail_config_get_default_transport (void); void mail_config_save_accounts (void); /* signatures */ -struct _ESignature *mail_config_signature_new (const gchar *filename, gboolean script, gboolean html); -struct _ESignature *mail_config_get_signature_by_uid (const gchar *uid); -struct _ESignature *mail_config_get_signature_by_name (const gchar *name); +ESignature *mail_config_signature_new (const gchar *filename, gboolean script, gboolean html); +ESignature *mail_config_get_signature_by_uid (const gchar *uid); +ESignature *mail_config_get_signature_by_name (const gchar *name); -struct _ESignatureList *mail_config_get_signatures (void); -void mail_config_add_signature (struct _ESignature *signature); -void mail_config_remove_signature (struct _ESignature *signature); +ESignatureList *mail_config_get_signatures (void); +void mail_config_add_signature (ESignature *signature); +void mail_config_remove_signature (ESignature *signature); void mail_config_save_signatures (void); @@ -146,8 +137,8 @@ void mail_config_uri_renamed (GCompareFunc uri_cmp, const gchar *old, const gcha void mail_config_uri_deleted (GCompareFunc uri_cmp, const gchar *uri); /* static utility functions */ -gchar *mail_config_folder_to_cachename (struct _CamelFolder *folder, const gchar *prefix); -gchar *mail_config_folder_to_safe_url (struct _CamelFolder *folder); +gchar *mail_config_folder_to_cachename (CamelFolder *folder, const gchar *prefix); +gchar *mail_config_folder_to_safe_url (CamelFolder *folder); guint mail_config_get_error_timeout (void); guint mail_config_get_error_level (void); diff --git a/mail/mail-crypto.h b/mail/mail-crypto.h index 0ed51e3ff1..d4d5b7f504 100644 --- a/mail/mail-crypto.h +++ b/mail/mail-crypto.h @@ -25,10 +25,8 @@ G_BEGIN_DECLS -struct _EAccount; - /* PGP/MIME convenience wrappers */ -struct _CamelCipherContext *mail_crypto_get_pgp_cipher_context(struct _EAccount *account); +CamelCipherContext *mail_crypto_get_pgp_cipher_context(EAccount *account); G_END_DECLS diff --git a/mail/mail-mt.c b/mail/mail-mt.c index bc94d4538f..61e7c780f3 100644 --- a/mail/mail-mt.c +++ b/mail/mail-mt.c @@ -51,7 +51,7 @@ #define d(x) static void set_stop(gint sensitive); -static void mail_operation_status(struct _CamelOperation *op, const gchar *what, gint pc, gpointer data); +static void mail_operation_status(CamelOperation *op, const gchar *what, gint pc, gpointer data); #ifdef LOG_LOCKS #define MAIL_MT_LOCK(x) (log_locks?fprintf(log, "%" G_GINT64_MODIFIER "x: lock " # x "\n", e_util_pthread_id(pthread_self())):0, pthread_mutex_lock(&x)) @@ -930,7 +930,7 @@ void mail_disable_stop(void) struct _op_status_msg { MailMsg base; - struct _CamelOperation *op; + CamelOperation *op; gchar *what; gint pc; gpointer data; @@ -1032,7 +1032,7 @@ static MailMsgInfo op_status_info = { }; static void -mail_operation_status (struct _CamelOperation *op, const gchar *what, gint pc, gpointer data) +mail_operation_status (CamelOperation *op, const gchar *what, gint pc, gpointer data) { struct _op_status_msg *m; diff --git a/mail/mail-tools.h b/mail/mail-tools.h index 11e7c87dcd..ceb3ce8fb0 100644 --- a/mail/mail-tools.h +++ b/mail/mail-tools.h @@ -24,39 +24,35 @@ #define MAIL_TOOLS_H #include - -struct _CamelFolder; -struct _CamelException; -struct _CamelMimeMessage; -struct _CamelMimePart; -struct _camel_header_raw; +#include +#include /* Get the "inbox" for a url (uses global session) */ -struct _CamelFolder *mail_tool_get_inbox (const gchar *url, struct _CamelException *ex); +CamelFolder *mail_tool_get_inbox (const gchar *url, CamelException *ex); /* Get the "trash" for a url (uses global session) */ -struct _CamelFolder *mail_tool_get_trash (const gchar *url, gint connect, struct _CamelException *ex); +CamelFolder *mail_tool_get_trash (const gchar *url, gint connect, CamelException *ex); /* Does a camel_movemail into the local movemail folder * and returns the path to the new movemail folder that was created. which shoudl be freed later */ -gchar *mail_tool_do_movemail (const gchar *source_url, struct _CamelException *ex); +gchar *mail_tool_do_movemail (const gchar *source_url, CamelException *ex); -struct _camel_header_raw *mail_tool_remove_xevolution_headers (struct _CamelMimeMessage *message); -void mail_tool_restore_xevolution_headers (struct _CamelMimeMessage *message, struct _camel_header_raw *); +struct _camel_header_raw *mail_tool_remove_xevolution_headers (CamelMimeMessage *message); +void mail_tool_restore_xevolution_headers (CamelMimeMessage *message, struct _camel_header_raw *); /* Generates the subject for a message forwarding @msg */ -gchar *mail_tool_generate_forward_subject (struct _CamelMimeMessage *msg); +gchar *mail_tool_generate_forward_subject (CamelMimeMessage *msg); /* Make a message into an attachment */ -struct _CamelMimePart *mail_tool_make_message_attachment (struct _CamelMimeMessage *message); +CamelMimePart *mail_tool_make_message_attachment (CamelMimeMessage *message); -/* Parse the ui into a real struct _CamelFolder any way we know how. */ -struct _CamelFolder *mail_tool_uri_to_folder (const gchar *uri, guint32 flags, struct _CamelException *ex); +/* Parse the ui into a real CamelFolder any way we know how. */ +CamelFolder *mail_tool_uri_to_folder (const gchar *uri, guint32 flags, CamelException *ex); -GHashTable *mail_lookup_url_table (struct _CamelMimeMessage *mime_message); +GHashTable *mail_lookup_url_table (CamelMimeMessage *mime_message); -struct _CamelFolder *mail_tools_x_evolution_message_parse (gchar *in, guint inlen, GPtrArray **uids); +CamelFolder *mail_tools_x_evolution_message_parse (gchar *in, guint inlen, GPtrArray **uids); -gchar *mail_tools_folder_to_url (struct _CamelFolder *folder); +gchar *mail_tools_folder_to_url (CamelFolder *folder); #endif diff --git a/mail/mail-vfolder.h b/mail/mail-vfolder.h index 9eb1f85ac2..79374348ae 100644 --- a/mail/mail-vfolder.h +++ b/mail/mail-vfolder.h @@ -22,35 +22,35 @@ #ifndef _MAIL_VFOLDER_H #define _MAIL_VFOLDER_H -struct _CamelStore; -struct _FilterPart; -struct _FilterRule; -struct _CamelMimeMessage; -struct _EMVFolderRule; -struct _CamelInternetAddress; +#include +#include + +#include +#include +#include void vfolder_load_storage(void); void vfolder_revert(void); void vfolder_edit (void); void vfolder_edit_rule(const gchar *name); -struct _FilterPart *vfolder_create_part (const gchar *name); -struct _FilterRule *vfolder_clone_rule (struct _FilterRule *in); -void vfolder_gui_add_rule (struct _EMVFolderRule *rule); -void vfolder_gui_add_from_message (struct _CamelMimeMessage *msg, gint flags, const gchar *source); -void vfolder_gui_add_from_address (struct _CamelInternetAddress *addr, gint flags, const gchar *source); +FilterPart *vfolder_create_part (const gchar *name); +FilterRule *vfolder_clone_rule (FilterRule *in); +void vfolder_gui_add_rule (EMVFolderRule *rule); +void vfolder_gui_add_from_message (CamelMimeMessage *msg, gint flags, const gchar *source); +void vfolder_gui_add_from_address (CamelInternetAddress *addr, gint flags, const gchar *source); GList * mail_vfolder_get_sources_local (void); GList * mail_vfolder_get_sources_remote (void); /* add a uri that is now (un)available to vfolders in a transient manner */ -void mail_vfolder_add_uri(struct _CamelStore *store, const gchar *uri, gint remove); +void mail_vfolder_add_uri(CamelStore *store, const gchar *uri, gint remove); /* note that a folder has changed name (uri) */ -void mail_vfolder_rename_uri(struct _CamelStore *store, const gchar *from, const gchar *to); +void mail_vfolder_rename_uri(CamelStore *store, const gchar *from, const gchar *to); /* remove a uri that should be removed from vfolders permanently */ -void mail_vfolder_delete_uri(struct _CamelStore *store, const gchar *uri); +void mail_vfolder_delete_uri(CamelStore *store, const gchar *uri); /* close up, clean up */ void mail_vfolder_shutdown (void); diff --git a/mail/message-list.h b/mail/message-list.h index 8949b91347..259ec501dd 100644 --- a/mail/message-list.h +++ b/mail/message-list.h @@ -24,6 +24,7 @@ #define _MESSAGE_LIST_H_ #include +#include #include
#include
@@ -156,7 +157,7 @@ struct _MessageList { gchar *frozen_search; /* to save search took place while we were frozen */ /* the current camel folder thread tree, if any */ - struct _CamelFolderThread *thread_tree; + CamelFolderThread *thread_tree; /* for message/folder chagned event handling */ struct _MailAsyncEvent *async_event; diff --git a/mail/message-tag-followup.h b/mail/message-tag-followup.h index bc8c793eff..c7ed55c61a 100644 --- a/mail/message-tag-followup.h +++ b/mail/message-tag-followup.h @@ -42,13 +42,13 @@ typedef struct _MessageTagFollowUpClass MessageTagFollowUpClass; struct _MessageTagFollowUp { MessageTagEditor parent; - struct _GtkTreeView *message_list; + GtkTreeView *message_list; - struct _GtkComboBox *combo_entry; + GtkComboBox *combo_entry; struct _EDateEdit *target_date; - struct _GtkToggleButton *completed; - struct _GtkButton *clear; + GtkToggleButton *completed; + GtkButton *clear; time_t completed_date; }; -- cgit v1.2.3 From c9e4c386ebfa2f561e817fefb09e43d1987213c6 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 15 Jun 2009 15:42:17 -0400 Subject: =?UTF-8?q?Bug=20464131=20=E2=80=93=20Allow=20inline=20view=20of?= =?UTF-8?q?=20application/mbox=20attachments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mail/em-format.c | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) (limited to 'mail') diff --git a/mail/em-format.c b/mail/em-format.c index 3c7c4cdc80..1cc6468e55 100644 --- a/mail/em-format.c +++ b/mail/em-format.c @@ -1576,6 +1576,73 @@ emf_multipart_signed(EMFormat *emf, CamelStream *stream, CamelMimePart *part, co } } +/* RFC 4155 */ +static void +emf_application_mbox (EMFormat *emf, + CamelStream *stream, + CamelMimePart *mime_part, + const EMFormatHandler *info) +{ + const EMFormatHandler *handle; + CamelMimeParser *parser; + CamelStream *mem_stream; + camel_mime_parser_state_t state; + + /* Extract messages from the application/mbox part and + * render them as a flat list of messages. */ + + /* XXX If the mbox has multiple messages, maybe render them + * as a multipart/digest so each message can be expanded + * or collapsed individually. + * + * See attachment_handler_mail_x_uid_list() for example. */ + + /* XXX This is based on em_utils_read_messages_from_stream(). + * Perhaps refactor that function to return an array of + * messages instead of assuming we want to append them + * to a folder? */ + + handle = em_format_find_handler (emf, "x-evolution/message/rfc822"); + g_return_if_fail (handle != NULL); + + parser = camel_mime_parser_new (); + camel_mime_parser_scan_from (parser, TRUE); + + mem_stream = camel_stream_mem_new (); + camel_data_wrapper_decode_to_stream ( + CAMEL_DATA_WRAPPER (mime_part), mem_stream); + camel_seekable_stream_seek ( + CAMEL_SEEKABLE_STREAM (mem_stream), 0, CAMEL_STREAM_SET); + camel_mime_parser_init_with_stream (parser, mem_stream); + camel_object_unref (mem_stream); + + /* Extract messages from the mbox. */ + state = camel_mime_parser_step (parser, NULL, NULL); + while (state == CAMEL_MIME_PARSER_STATE_FROM) { + CamelMimeMessage *message; + + message = camel_mime_message_new (); + mime_part = CAMEL_MIME_PART (message); + + if (camel_mime_part_construct_from_parser (mime_part, parser) == -1) { + camel_object_unref (message); + break; + } + + /* Render the message. */ + handle->handler (emf, stream, mime_part, handle); + + camel_object_unref (message); + + /* Skip past CAMEL_MIME_PARSER_STATE_FROM_END. */ + state = camel_mime_parser_step (parser, NULL, NULL); + + state = camel_mime_parser_step (parser, NULL, NULL); + } + + camel_object_unref (parser); +} + static void emf_message_rfc822(EMFormat *emf, CamelStream *stream, CamelMimePart *part, const EMFormatHandler *info) { @@ -1739,6 +1806,7 @@ static EMFormatHandler type_builtin_table[] = { #ifdef ENABLE_SMIME { (gchar *) "application/x-pkcs7-mime", (EMFormatFunc)emf_application_xpkcs7mime, EM_FORMAT_HANDLER_INLINE_DISPOSITION }, #endif + { (gchar *) "application/mbox", emf_application_mbox, EM_FORMAT_HANDLER_INLINE }, { (gchar *) "multipart/alternative", emf_multipart_alternative }, { (gchar *) "multipart/appledouble", emf_multipart_appledouble }, { (gchar *) "multipart/encrypted", emf_multipart_encrypted }, -- cgit v1.2.3 From ae925791901540bf485ddc3e7e613768e93ebebd Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Wed, 24 Jun 2009 14:23:33 +0530 Subject: Fixes a bug where edit accounts are treated as new accounts and acc/auto-config starts working. --- mail/em-account-editor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c index 95b525a8a9..287fecc140 100644 --- a/mail/em-account-editor.c +++ b/mail/em-account-editor.c @@ -2746,6 +2746,7 @@ emae_check_complete(EConfig *ec, const gchar *pageid, gpointer data) const gchar *tmp; EAccount *ea; gboolean refresh = FALSE; + gboolean edit = emae->original != NULL; /* We use the page-check of various pages to 'prepare' or pre-load their values, only in the druid */ @@ -2784,7 +2785,7 @@ emae_check_complete(EConfig *ec, const gchar *pageid, gpointer data) index = check_servers(at); gtk_entry_set_text(emae->priv->source.username, user); gtk_entry_set_text(emae->priv->transport.username, user); - if (uri && (url = camel_url_new(uri, NULL)) != NULL) { + if (!edit && uri && (url = camel_url_new(uri, NULL)) != NULL) { refresh = TRUE; camel_url_set_user (url, user); if (index != -1) { -- cgit v1.2.3 From 014aac87ac38f18527f6753f2009f4d0c78d1015 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 24 Jun 2009 12:59:40 +0200 Subject: Bug #568302 - Skip "noselect=yes" folders on Send/Receive --- mail/mail-send-recv.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'mail') diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index f20d71f84e..8411290222 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -782,8 +782,15 @@ get_folders (CamelStore *store, GPtrArray *folders, CamelFolderInfo *info) camel_exception_init (&ex); while (info) { - if (camel_store_can_refresh_folder (store, info, &ex)) - g_ptr_array_add (folders, g_strdup (info->uri)); + if (camel_store_can_refresh_folder (store, info, &ex)) { + CamelURL *url = camel_url_new (info->uri, NULL); + + if (url && (!camel_url_get_param (url, "noselect") || !g_str_equal (camel_url_get_param (url, "noselect"), "yes"))) + g_ptr_array_add (folders, g_strdup (info->uri)); + + if (url) + camel_url_free (url); + } camel_exception_clear (&ex); get_folders (store, folders, info->child); -- cgit v1.2.3 From 87773593220e581de841e837c29acb99a818c890 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Thu, 25 Jun 2009 10:37:10 +0530 Subject: Add more apis for Anjal to draft composer. --- mail/em-composer-utils.c | 16 +++++++++++----- mail/em-composer-utils.h | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) (limited to 'mail') diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c index 7bb87222cd..d76fc4eecb 100644 --- a/mail/em-composer-utils.c +++ b/mail/em-composer-utils.c @@ -763,7 +763,7 @@ em_utils_compose_new_message_with_mailto (const gchar *url, const gchar *fromuri /* Editing messages... */ -static void +static GtkWidget * edit_message (CamelMimeMessage *message, CamelFolder *drafts, const gchar *uid) { EMsgComposer *composer; @@ -910,7 +910,10 @@ edit_message (CamelMimeMessage *message, CamelFolder *drafts, const gchar *uid) composer_set_no_change (composer, TRUE, FALSE); - gtk_widget_show (GTK_WIDGET (composer)); + if (!e_msg_composer_get_lite()) + gtk_widget_show (GTK_WIDGET (composer)); + + return (GtkWidget *)composer; } /** @@ -921,15 +924,18 @@ edit_message (CamelMimeMessage *message, CamelFolder *drafts, const gchar *uid) * Opens a composer filled in with the headers/mime-parts/etc of * @message. **/ -void +GtkWidget * em_utils_edit_message (CamelMimeMessage *message, CamelFolder *folder) { + GtkWidget *composer = NULL; g_return_if_fail (CAMEL_IS_MIME_MESSAGE (message)); if (folder) - edit_message (message, folder, NULL); + composer = edit_message (message, folder, NULL); else - edit_message (message, NULL, NULL); + composer = edit_message (message, NULL, NULL); + + return composer; } static void diff --git a/mail/em-composer-utils.h b/mail/em-composer-utils.h index 4c916529ec..66168e3a43 100644 --- a/mail/em-composer-utils.h +++ b/mail/em-composer-utils.h @@ -46,7 +46,7 @@ EMsgComposer * em_utils_compose_lite_new_message (const gchar *fromuri); /* FIXME: mailto? url? should make up its mind what its called. imho use 'uri' */ EMsgComposer * em_utils_compose_new_message_with_mailto (const gchar *url, const gchar *fromuri); -void em_utils_edit_message (CamelMimeMessage *message, CamelFolder *folder); +GtkWidget * em_utils_edit_message (CamelMimeMessage *message, CamelFolder *folder); void em_utils_edit_messages (CamelFolder *folder, GPtrArray *uids, gboolean replace); void em_utils_forward_attached (CamelFolder *folder, GPtrArray *uids, const gchar *fromuri); -- cgit v1.2.3 From 7984b925c84692df2ea9d30480431c8a84c0b657 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Thu, 25 Jun 2009 14:13:03 +0530 Subject: Fix some warnings --- mail/em-composer-utils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mail') diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c index d76fc4eecb..9341950335 100644 --- a/mail/em-composer-utils.c +++ b/mail/em-composer-utils.c @@ -788,7 +788,7 @@ edit_message (CamelMimeMessage *message, CamelFolder *drafts, const gchar *uid) content = camel_medium_get_content_object ((CamelMedium *) message); if (!content) - return; + return NULL; /* * Get non-multipart content from multipart message. @@ -801,11 +801,11 @@ edit_message (CamelMimeMessage *message, CamelFolder *drafts, const gchar *uid) } if (!mime_part) - return; + return NULL; type = camel_mime_part_get_content_type (mime_part); if (!camel_content_type_is (type, "text", "plain")) - return; + return NULL; mem = camel_stream_mem_new (); camel_data_wrapper_decode_to_stream (content, mem); @@ -928,7 +928,7 @@ GtkWidget * em_utils_edit_message (CamelMimeMessage *message, CamelFolder *folder) { GtkWidget *composer = NULL; - g_return_if_fail (CAMEL_IS_MIME_MESSAGE (message)); + g_return_val_if_fail (CAMEL_IS_MIME_MESSAGE (message), NULL); if (folder) composer = edit_message (message, folder, NULL); -- cgit v1.2.3 From 7c8e8174bc891b9208b7d500e768dc2ca8ed7b33 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 25 Jun 2009 13:19:19 +0200 Subject: Bug #268644 - unread mail shortcut collides with gtk tree search --- mail/em-folder-tree.c | 14 +++++++++++++- mail/em-folder-tree.h | 1 + mail/mail-component.c | 20 ++++++++++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index 31144935f9..1702713104 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -115,6 +115,7 @@ struct _EMFolderTreePrivate { enum { FOLDER_ACTIVATED, /* aka double-clicked or user hit enter */ FOLDER_SELECTED, + HIDDEN_KEY_EVENT, LAST_SIGNAL }; @@ -239,6 +240,15 @@ em_folder_tree_class_init (EMFolderTreeClass *klass) G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_STRING); + + signals[HIDDEN_KEY_EVENT] = + g_signal_new ("hidden-key-event", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (EMFolderTreeClass, hidden_key_event), + NULL, NULL, + g_cclosure_marshal_VOID__BOXED, + G_TYPE_NONE, 1, GDK_TYPE_EVENT); } static gboolean @@ -2285,7 +2295,9 @@ emft_tree_button_press (GtkTreeView *treeview, GdkEventButton *event, EMFolderTr static gboolean emft_tree_user_event (GtkTreeView *treeview, GdkEvent *e, EMFolderTree *emft) { - if (e && e->type == GDK_KEY_PRESS && e->key.keyval == GDK_space) { + if (e && e->type == GDK_KEY_PRESS && (e->key.keyval == GDK_space || e->key.keyval == '.' || e->key.keyval == ',' || e->key.keyval == '[' || e->key.keyval == ']')) { + g_signal_emit (emft, signals [HIDDEN_KEY_EVENT], 0, e); + return TRUE; } if (!emft->priv->do_multiselect) diff --git a/mail/em-folder-tree.h b/mail/em-folder-tree.h index ba02ff1e59..e8b607151c 100644 --- a/mail/em-folder-tree.h +++ b/mail/em-folder-tree.h @@ -62,6 +62,7 @@ struct _EMFolderTreeClass { /* signals */ void (* folder_activated) (EMFolderTree *emft, const gchar *full_name, const gchar *uri); void (* folder_selected) (EMFolderTree *emft, const gchar *full_name, const gchar *uri, guint32 flags); + void (* hidden_key_event) (EMFolderTree *emft, GdkEvent *event); }; GType em_folder_tree_get_type (void); diff --git a/mail/mail-component.c b/mail/mail-component.c index 4b788b3178..c54a76abef 100644 --- a/mail/mail-component.c +++ b/mail/mail-component.c @@ -414,6 +414,25 @@ folder_selected_cb (EMFolderTree *emft, const gchar *path, const gchar *uri, gui } } +static void +tree_hidden_key_event_cb (EMFolderTree *emft, GdkEvent *event, EMFolderView *view) +{ + if (event && event->type == GDK_KEY_PRESS && view && view->list) { + switch (event->key.keyval) { + case '[': + case ',': + gtk_widget_grab_focus ((GtkWidget *) view->list); + message_list_select (view->list, MESSAGE_LIST_SELECT_PREVIOUS|MESSAGE_LIST_SELECT_WRAP, 0, CAMEL_MESSAGE_SEEN); + break; + case ']': + case '.': + gtk_widget_grab_focus ((GtkWidget *) view->list); + message_list_select (view->list, MESSAGE_LIST_SELECT_NEXT|MESSAGE_LIST_SELECT_WRAP, 0, CAMEL_MESSAGE_SEEN); + break; + } + } +} + static gint check_autosave(gpointer data) { @@ -786,6 +805,7 @@ impl_createView (PortableServer_Servant servant, g_signal_connect (component_view->view_control, "activate", G_CALLBACK (view_control_activate_cb), view_widget); g_signal_connect (tree_widget, "folder-selected", G_CALLBACK (folder_selected_cb), view_widget); + g_signal_connect (tree_widget, "hidden-key-event", G_CALLBACK (tree_hidden_key_event_cb), view_widget); g_signal_connect((EMFolderBrowser *)view_widget, "account_search_cleared", G_CALLBACK (enable_folder_tree), tree_widget); g_signal_connect(((EMFolderBrowser *)view_widget), "account_search_activated", G_CALLBACK (disable_folder_tree), tree_widget); -- cgit v1.2.3 From 0169e6a289a1836ca54541797e2d6c9cad2ada3d Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 30 Jun 2009 18:26:57 +0200 Subject: Hide proper widgets from filter.glade for searches --- mail/em-vfolder-editor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/em-vfolder-editor.c b/mail/em-vfolder-editor.c index 4182f7a3a3..3fd822fbcc 100644 --- a/mail/em-vfolder-editor.c +++ b/mail/em-vfolder-editor.c @@ -113,7 +113,8 @@ em_vfolder_editor_new (EMVFolderContext *vc) g_free (gladefile); rule_editor_construct ((RuleEditor *) ve, (RuleContext *) vc, gui, "incoming", _("Search _Folders")); - gtk_widget_hide(glade_xml_get_widget (gui, "filter_source")); + gtk_widget_hide (glade_xml_get_widget (gui, "label17")); + gtk_widget_hide (glade_xml_get_widget (gui, "filter_source_combobox")); g_object_unref (gui); return ve; -- cgit v1.2.3 From 42e75c9162402078ac629740821c3533925ee342 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 30 Jun 2009 17:18:36 -0400 Subject: Use AM_CPPFLAGS instead of INCLUDE in all Makefile.am. --- mail/Makefile.am | 2 +- mail/importers/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'mail') diff --git a/mail/Makefile.am b/mail/Makefile.am index a7602c99dd..f8277aa9e0 100644 --- a/mail/Makefile.am +++ b/mail/Makefile.am @@ -2,7 +2,7 @@ SUBDIRS = default importers mailincludedir = $(privincludedir)/mail -INCLUDES = \ +AM_CPPFLAGS = \ -I$(top_srcdir)/widgets \ -I$(top_srcdir)/widgets/misc \ -I$(top_srcdir) \ diff --git a/mail/importers/Makefile.am b/mail/importers/Makefile.am index 197415b4ee..5e46a54c4d 100644 --- a/mail/importers/Makefile.am +++ b/mail/importers/Makefile.am @@ -6,7 +6,7 @@ endif privsolib_LTLIBRARIES = libevolution-mail-importers.la -INCLUDES = -I.. \ +AM_CPPFLAGS = -I.. \ -I$(srcdir)/.. \ -I$(top_srcdir) \ -I$(top_srcdir)/widgets \ -- cgit v1.2.3