aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2004-04-29 03:03:10 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-04-29 03:03:10 +0800
commit10c99a5bb240d219151287bc40a98ac57913b3f4 (patch)
tree8ba50f2c36c1113a354045e0d61c52f098e55396 /mail
parentf3c6203a63c4b9ff073b06c92cbd7a4175703220 (diff)
downloadgsoc2013-evolution-10c99a5bb240d219151287bc40a98ac57913b3f4.tar
gsoc2013-evolution-10c99a5bb240d219151287bc40a98ac57913b3f4.tar.gz
gsoc2013-evolution-10c99a5bb240d219151287bc40a98ac57913b3f4.tar.bz2
gsoc2013-evolution-10c99a5bb240d219151287bc40a98ac57913b3f4.tar.lz
gsoc2013-evolution-10c99a5bb240d219151287bc40a98ac57913b3f4.tar.xz
gsoc2013-evolution-10c99a5bb240d219151287bc40a98ac57913b3f4.tar.zst
gsoc2013-evolution-10c99a5bb240d219151287bc40a98ac57913b3f4.zip
We only want 8bits per color. Fixes bug #57588.
2004-04-28 Jeffrey Stedfast <fejj@ximian.com> * em-mailer-prefs.c (citation_color_set): We only want 8bits per color. Fixes bug #57588. svn path=/trunk/; revision=25671
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/em-mailer-prefs.c8
2 files changed, 7 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index a1309dbaec..9c28ab805f 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,8 @@
2004-04-28 Jeffrey Stedfast <fejj@ximian.com>
+ * em-mailer-prefs.c (citation_color_set): We only want 8bits per
+ color. Fixes bug #57588.
+
* em-folder-tree-model.c (em_folder_tree_model_remove_store):
Duh. If the lookup of si fails, don't use si->display_name in the
warning message. Actually, don't bother with a warning message at
diff --git a/mail/em-mailer-prefs.c b/mail/em-mailer-prefs.c
index fd1e118e02..9ca583e5c9 100644
--- a/mail/em-mailer-prefs.c
+++ b/mail/em-mailer-prefs.c
@@ -173,13 +173,13 @@ citation_color_set (GtkWidget *widget, guint r, guint g, guint b, guint a, EMMai
guint32 rgb = 0;
char buf[20];
- rgb = r;
+ rgb = r & 0xff;
rgb <<= 8;
- rgb |= g;
+ rgb |= g & 0xff;
rgb <<= 8;
- rgb |= b;
+ rgb |= b & 0xff;
- sprintf (buf,"#%06x", rgb & 0xffffff);
+ sprintf (buf, "#%06x", rgb & 0xffffff);
gconf_client_set_string (prefs->gconf, "/apps/evolution/mail/display/citation_colour", buf, NULL);
}