diff options
author | Srinivasa Ragavan <sragavan@src.gnome.org> | 2006-05-25 12:59:47 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2006-05-25 12:59:47 +0800 |
commit | 253a05d03cb3d827a0da0002cb48231bd238caa3 (patch) | |
tree | 0f5f1db00ebbe4d98b1e231f97d83787e53e4d94 /mail/mail-config.c | |
parent | 1fe1c955be05d4f89465d72b538ce167eec0727e (diff) | |
download | gsoc2013-evolution-253a05d03cb3d827a0da0002cb48231bd238caa3.tar.gz gsoc2013-evolution-253a05d03cb3d827a0da0002cb48231bd238caa3.tar.zst gsoc2013-evolution-253a05d03cb3d827a0da0002cb48231bd238caa3.zip |
Added support for collapsible headers for To/Cc/Bcc
svn path=/trunk/; revision=32020
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r-- | mail/mail-config.c | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c index 65223f81a8..fb06f9e17f 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -106,6 +106,10 @@ typedef struct { guint spell_notify_id; guint mark_citations__notify_id; guint citation_colour_notify_id; + guint address_count_notify_id; + guint address_compress_notify_id; + gboolean address_compress; + gint address_count; GPtrArray *mime_types; guint mime_types_notify_id; @@ -321,6 +325,20 @@ gconf_style_changed (GConfClient *client, guint cnxn_id, } static void +gconf_address_count_changed (GConfClient *client, guint cnxn_id, + GConfEntry *entry, gpointer user_data) +{ + config->address_count = gconf_client_get_int (config->gconf, "/apps/evolution/mail/display/address_count", NULL); +} + +static void +gconf_address_compress_changed (GConfClient *client, guint cnxn_id, + GConfEntry *entry, gpointer user_data) +{ + config->address_compress = gconf_client_get_bool (config->gconf, "/apps/evolution/mail/display/address_compress", NULL); +} + +static void gconf_mime_types_changed (GConfClient *client, guint cnxn_id, GConfEntry *entry, gpointer user_data) { @@ -352,6 +370,10 @@ mail_config_init (void) GCONF_CLIENT_PRELOAD_ONELEVEL, NULL); config->font_notify_id = gconf_client_notify_add (config->gconf, "/apps/evolution/mail/display/fonts", gconf_style_changed, NULL, NULL, NULL); + config->font_notify_id = gconf_client_notify_add (config->gconf, "/apps/evolution/mail/display/address_compress", + gconf_address_compress_changed, NULL, NULL, NULL); + config->font_notify_id = gconf_client_notify_add (config->gconf, "/apps/evolution/mail/display/address_count", + gconf_address_count_changed, NULL, NULL, NULL); config->spell_notify_id = gconf_client_notify_add (config->gconf, "/GNOME/Spell", gconf_style_changed, NULL, NULL, NULL); config->mark_citations__notify_id = gconf_client_notify_add (config->gconf, "/apps/evolution/mail/display/mark_citations", @@ -373,7 +395,8 @@ mail_config_init (void) config_cache_labels (); config_cache_mime_types (); - + config->address_compress = gconf_client_get_bool (config->gconf, "/apps/evolution/mail/display/address_compress", NULL); + config->address_count = gconf_client_get_int (config->gconf, "/apps/evolution/mail/display/address_count", NULL); config->accounts = e_account_list_new (config->gconf); config->signatures = e_signature_list_new (config->gconf); } @@ -506,6 +529,15 @@ mail_config_get_labels (void) return config->labels; } +int +mail_config_get_address_count (void) +{ + if (!config->address_compress) + return -1; + + return config->address_count; +} + const char * mail_config_get_label_color_by_name (const char *name) { |