aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-hdrs.h
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@ximian.com>2001-03-08 10:06:26 +0800
committerMiguel de Icaza <miguel@src.gnome.org>2001-03-08 10:06:26 +0800
commit6145f688cc4154f580c4443f999fd14a027a14d8 (patch)
treeb9be6d5401b7c17610310581f561ba3cfffcbf63 /composer/e-msg-composer-hdrs.h
parent3f72523dfa9fcbea86538b37130b863fc805e7ec (diff)
downloadgsoc2013-evolution-6145f688cc4154f580c4443f999fd14a027a14d8.tar
gsoc2013-evolution-6145f688cc4154f580c4443f999fd14a027a14d8.tar.gz
gsoc2013-evolution-6145f688cc4154f580c4443f999fd14a027a14d8.tar.bz2
gsoc2013-evolution-6145f688cc4154f580c4443f999fd14a027a14d8.tar.lz
gsoc2013-evolution-6145f688cc4154f580c4443f999fd14a027a14d8.tar.xz
gsoc2013-evolution-6145f688cc4154f580c4443f999fd14a027a14d8.tar.zst
gsoc2013-evolution-6145f688cc4154f580c4443f999fd14a027a14d8.zip
New function. Used to store integer values into the configuration engine.
2001-03-06 Miguel de Icaza <miguel@ximian.com> * e-msg-composer.c (set_config): New function. Used to store integer values into the configuration engine. Handles the case of Bonobo-conf being installed, or falls back to gnome_config. * e-msg-composer-hdrs.c (add_header): Renamed to be header_new_recipient(). Now we take care of the other cases in create_headers, which is a lot nicer now. (create_optionmenu): Removed extra "name" argument which was not being used anyways (the only arg passed was From:). (init): Removed all the redundant NULL initialization by using nice g_new0 (create_headers): New function, much cleaner. Use of Pair structure everywhere instead of individual widgets to keep track of which ones are visible and which ones are not. * e-msg-composer.c (setup_ui): Handle ViewFrom and ViewBCC commands. (menu_view_bcc_cb, menu_view_from_cb): New functions that implement the features described. (menu_format_html_cb): Removed unrequired test, as e_msg_composer_set_send_html already optimizes the case of the state being the same. (menu_security_pgp_encrypt_cb): Remove redundant code. (menu_security_pgp_sign_cb): ditto. 2001-03-06 Miguel de Icaza <miguel@ximian.com> * evolution-message-composer.xml: Reorder menus to be File, Edit, View, Insert, Format (instead of File, Edit, Format, View, Insert). Add View/From Field and View/From BCC Add Insert/File. Add File/Send menu item. Change the look to follow the "mailer" look (thiner display). svn path=/trunk/; revision=8590
Diffstat (limited to 'composer/e-msg-composer-hdrs.h')
-rw-r--r--composer/e-msg-composer-hdrs.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/composer/e-msg-composer-hdrs.h b/composer/e-msg-composer-hdrs.h
index 9b1c5c4c84..9a32aee0fc 100644
--- a/composer/e-msg-composer-hdrs.h
+++ b/composer/e-msg-composer-hdrs.h
@@ -64,9 +64,16 @@ struct _EMsgComposerHdrsClass {
void (* hdrs_changed) (EMsgComposerHdrs *hdrs);
};
+typedef enum {
+ E_MSG_COMPOSER_VISIBLE_FROM = 1,
+ E_MSG_COMPOSER_VISIBLE_CC = 2,
+ E_MSG_COMPOSER_VISIBLE_BCC = 4,
+ E_MSG_COMPOSER_VISIBLE_SUBJECT = 8
+} EMsgComposerHeaderVisibleFlags;
+
GtkType e_msg_composer_hdrs_get_type (void);
-GtkWidget *e_msg_composer_hdrs_new (void);
+GtkWidget *e_msg_composer_hdrs_new (gint visible_flags);
void e_msg_composer_hdrs_to_message (EMsgComposerHdrs *hdrs,
CamelMimeMessage *msg);
@@ -93,6 +100,10 @@ GtkWidget *e_msg_composer_hdrs_get_cc_entry (EMsgComposerHdrs *hdrs);
GtkWidget *e_msg_composer_hdrs_get_bcc_entry (EMsgComposerHdrs *hdrs);
GtkWidget *e_msg_composer_hdrs_get_subject_entry (EMsgComposerHdrs *hdrs);
+gint e_msg_composer_get_hdrs_visible (EMsgComposerHdrs *hdrs);
+void e_msg_composer_set_hdrs_visible (EMsgComposerHdrs *hdrs,
+ gint flags);
+
#ifdef _cplusplus
}
#endif /* _cplusplus */