diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-07-26 02:19:46 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-07-26 02:19:46 +0800 |
commit | d725c8968467214a0cbf59c4e2dded119cbb6ab6 (patch) | |
tree | 78fcb4d0e4575c8bf5cf2e7d3426f7607bd572b7 /composer/e-msg-composer.h | |
parent | 59e2b13f220076c53598b1097eeb35e6b390b0b1 (diff) | |
download | gsoc2013-evolution-d725c8968467214a0cbf59c4e2dded119cbb6ab6.tar.gz gsoc2013-evolution-d725c8968467214a0cbf59c4e2dded119cbb6ab6.tar.zst gsoc2013-evolution-d725c8968467214a0cbf59c4e2dded119cbb6ab6.zip |
Create the Post-To header. (headers_set_visibility): Possibly show the
2002-07-24 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-hdrs.c (create_headers): Create the Post-To
header.
(headers_set_visibility): Possibly show the Post-To header.
(attach_headers): Attach the Post-To header.
(e_msg_composer_hdrs_set_post_to): Set the text for the Post-To
header.
(e_msg_composer_hdrs_get_post_to_label): Return the label widget
for this header pair.
(e_msg_composer_hdrs_set_visible_mask): New function to set the
visible mask (so we can disallow certain headers to be shown).
(e_msg_composer_hdrs_new): Save the visible mask argument.
(setup_headers): To: does not always have to be visible anymore.
(e_msg_composer_hdrs_get_post_to): New function to get the url for
the Post-To folder.
* e-msg-composer.c (e_msg_composer_get_visible_flags): Set the
Post-To bit when it is supposed to be visible.
(e_msg_composer_new_post): Set the visible_mask to only allow the
headers needed for Posting.
svn path=/trunk/; revision=17590
Diffstat (limited to 'composer/e-msg-composer.h')
-rw-r--r-- | composer/e-msg-composer.h | 55 |
1 files changed, 31 insertions, 24 deletions
diff --git a/composer/e-msg-composer.h b/composer/e-msg-composer.h index be5a5899c2..f8f6c4850d 100644 --- a/composer/e-msg-composer.h +++ b/composer/e-msg-composer.h @@ -21,6 +21,7 @@ * Author: Ettore Perazzoli */ + #ifndef ___E_MSG_COMPOSER_H__ #define ___E_MSG_COMPOSER_H__ @@ -76,33 +77,34 @@ struct _EMsgComposer { Bonobo_ConfigDatabase config_db; char *mime_type, *mime_body, *charset; - + char *autosave_file; int autosave_fd; - - gboolean attachment_bar_visible : 1; - gboolean send_html : 1; - gboolean is_alternative: 1; - gboolean pgp_sign : 1; - gboolean pgp_encrypt : 1; - gboolean smime_sign : 1; - gboolean smime_encrypt : 1; - gboolean view_from : 1; - gboolean view_replyto : 1; - gboolean view_bcc : 1; - gboolean view_cc : 1; - gboolean view_subject : 1; - gboolean has_changed : 1; - - gboolean in_signature_insert : 1; - - gboolean enable_autosave : 1; + guint32 enable_autosave : 1; + + guint32 attachment_bar_visible : 1; + guint32 send_html : 1; + guint32 is_alternative : 1; + guint32 pgp_sign : 1; + guint32 pgp_encrypt : 1; + guint32 smime_sign : 1; + guint32 smime_encrypt : 1; + guint32 view_from : 1; + guint32 view_replyto : 1; + guint32 view_bcc : 1; + guint32 view_cc : 1; + guint32 view_subject : 1; + guint32 has_changed : 1; + + guint32 mode_post : 1; + + guint32 in_signature_insert : 1; + guint32 auto_signature : 1; - CamelMimeMessage *redirect; - MailConfigSignature *signature; - gboolean auto_signature; GtkWidget *sig_omenu; + + CamelMimeMessage *redirect; }; struct _EMsgComposerClass { @@ -112,13 +114,17 @@ struct _EMsgComposerClass { void (* save_draft) (EMsgComposer *composer, int quit); }; - + GtkType e_msg_composer_get_type (void); + EMsgComposer *e_msg_composer_new (void); +EMsgComposer *e_msg_composer_new_post (void); + EMsgComposer *e_msg_composer_new_with_message (CamelMimeMessage *msg); EMsgComposer *e_msg_composer_new_from_url (const char *url); EMsgComposer *e_msg_composer_new_redirect (CamelMimeMessage *message, const char *resent_from); + void e_msg_composer_show_attachments (EMsgComposer *composer, gboolean show); void e_msg_composer_set_headers (EMsgComposer *composer, @@ -148,6 +154,7 @@ void e_msg_composer_show_sig_file (EMsgCo gboolean e_msg_composer_get_send_html (EMsgComposer *composer); void e_msg_composer_set_send_html (EMsgComposer *composer, gboolean send_html); + gboolean e_msg_composer_get_view_from (EMsgComposer *composer); void e_msg_composer_set_view_from (EMsgComposer *composer, gboolean view_from); @@ -169,7 +176,7 @@ char *e_msg_composer_get_subject (EMsgCo const MailConfigAccount *e_msg_composer_get_preferred_account (EMsgComposer *composer); void e_msg_composer_clear_inlined_table (EMsgComposer *composer); -char *e_msg_composer_guess_mime_type (const gchar *file_name); +char *e_msg_composer_guess_mime_type (const char *file_name); void e_msg_composer_set_changed (EMsgComposer *composer); void e_msg_composer_unset_changed (EMsgComposer *composer); gboolean e_msg_composer_is_dirty (EMsgComposer *composer); |