From ddda77f14467ec33ea50acd04e98b9086b1b62f6 Mon Sep 17 00:00:00 2001 From: Suman Manjunath Date: Tue, 11 Nov 2008 10:52:37 +0000 Subject: Fix for bug #440646 (bugzilla.novell.com) - Set the ESource color-spec for proxy accounts in the correct format. svn path=/trunk/; revision=36772 --- plugins/groupwise-account-setup/ChangeLog | 7 +++++++ plugins/groupwise-account-setup/camel-gw-listener.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/groupwise-account-setup/ChangeLog b/plugins/groupwise-account-setup/ChangeLog index 8674762787..474e27d7ec 100644 --- a/plugins/groupwise-account-setup/ChangeLog +++ b/plugins/groupwise-account-setup/ChangeLog @@ -1,3 +1,10 @@ +2008-11-11 Suman Manjunath + + ** Fix for bug #440646 (bugzilla.novell.com) + + * camel-gw-listener.c (add_proxy_sources): Set the ESource color-spec + for proxy accounts in the correct format. + 2008-09-25 Philip Withnall ** Fix for bug #553148 diff --git a/plugins/groupwise-account-setup/camel-gw-listener.c b/plugins/groupwise-account-setup/camel-gw-listener.c index fa46d8d973..0cee4317a7 100644 --- a/plugins/groupwise-account-setup/camel-gw-listener.c +++ b/plugins/groupwise-account-setup/camel-gw-listener.c @@ -559,7 +559,7 @@ add_proxy_sources (GwAccountInfo *info, const char *parent_name) url = camel_url_new (info->source_url, NULL); - color = g_strdup_printf ("%u", g_random_int_range (0x100000, 0xffffaa)); + color = g_strdup_printf ("#%06X", g_random_int_range (0x100000, 0xffffaa)); /* The above range is chosen so that the colors are neither too light nor too dark and appealing in all the themes */ -- cgit