aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-03-16 10:22:54 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-03-16 10:22:54 +0800
commit4c1a78e6124b25de8bbdd35298d6bd8959b31d0a (patch)
tree109db090280c02d845dfd109cf08e5af58025269 /mail/mail-config.h
parenteaaa45115ffe9382758627bb3747210f8a78788b (diff)
downloadgsoc2013-evolution-4c1a78e6124b25de8bbdd35298d6bd8959b31d0a.tar.gz
gsoc2013-evolution-4c1a78e6124b25de8bbdd35298d6bd8959b31d0a.tar.zst
gsoc2013-evolution-4c1a78e6124b25de8bbdd35298d6bd8959b31d0a.zip
New callback to set a colour on a message.
2002-03-15 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (colour_msg): New callback to set a colour on a message. * folder-browser.c (on_right_click): Setup our popup icons and stuff. Also add a submenu for Labels. * mail-display.c (pixmap_press): Sync up with the new EPopupMenu API. Note: This code can probably now be fixed to use per-item closures - yay! * mail-accounts.c (construct): Connect to the label GtkEntry's and GnomeColorPickers and also to the Restore Defaults button. * mail-config.c (mail_config_get_label_name): New function to get a label's name. (mail_config_set_label_name): New function to set the label name. (mail_config_get_label_color): New function to get the label color. (mail_config_set_label_color): New function to set the label color. (config_read): Read in the config options for the labels and their colors. (mail_config_write_on_exit): Save the label options. svn path=/trunk/; revision=16186
Diffstat (limited to 'mail/mail-config.h')
-rw-r--r--mail/mail-config.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/mail/mail-config.h b/mail/mail-config.h
index b9872960ef..beb4ce2815 100644
--- a/mail/mail-config.h
+++ b/mail/mail-config.h
@@ -32,10 +32,10 @@ extern "C" {
#endif /* __cplusplus */
typedef struct {
- gint id;
- gchar *name;
- gchar *filename;
- gchar *script;
+ int id;
+ char *name;
+ char *filename;
+ char *script;
gboolean random;
gboolean html;
} MailConfigSignature;
@@ -109,6 +109,13 @@ typedef enum {
MAIL_CONFIG_NOTIFY_PLAY_SOUND,
} MailConfigNewMailNotify;
+typedef struct {
+ char *name;
+ guint32 color;
+} MailConfigLabel;
+
+extern MailConfigLabel label_defaults[5];
+
/* signatures */
MailConfigSignature *signature_copy (const MailConfigSignature *sig);
void signature_destroy (MailConfigSignature *sig);
@@ -172,6 +179,11 @@ void mail_config_set_citation_highlight (gboolean);
guint32 mail_config_get_citation_color (void);
void mail_config_set_citation_color (guint32);
+const char *mail_config_get_label_name (int label);
+void mail_config_set_label_name (int label, const char *name);
+guint32 mail_config_get_label_color (int label);
+void mail_config_set_label_color (int label, guint32 color);
+
gint mail_config_get_do_seen_timeout (void);
void mail_config_set_do_seen_timeout (gboolean do_seen_timeout);