aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-preferences.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-preferences.c')
-rw-r--r--mail/mail-preferences.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/mail-preferences.c b/mail/mail-preferences.c
index be582a8a70..fe66fc1f19 100644
--- a/mail/mail-preferences.c
+++ b/mail/mail-preferences.c
@@ -381,7 +381,7 @@ mail_preferences_apply (MailPreferences *prefs)
gtk_toggle_button_get_active (prefs->citation_highlight), NULL);
rgb = colorpicker_get_color (prefs->citation_color);
- g_snprintf (buf, sizeof (buf), "#%0.6x", rgb);
+ sprintf (buf,"#%06x", rgb & 0xffffff);
gconf_client_set_string (prefs->gconf, "/apps/evolution/mail/display/citation_colour", buf, NULL);
/* Deleting Mail */
@@ -428,7 +428,7 @@ mail_preferences_apply (MailPreferences *prefs)
for (i = 4; i >= 0; i--) {
cstring = gtk_entry_get_text (prefs->labels[i].name);
rgb = colorpicker_get_color (prefs->labels[i].color);
- string = g_strdup_printf ("%s:#%0.6x", cstring, rgb);
+ string = g_strdup_printf ("%s:#%06x", cstring, rgb & 0xffffff);
list = g_slist_prepend (list, string);
}