app: handle calendars colours better

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=745487
This commit is contained in:
Erick Pérez Castellanos
2015-03-06 11:32:32 -05:00
parent 9f20c3f2f9
commit c7563da2d0
9 changed files with 25 additions and 16 deletions
+6 -2
View File
@@ -132,7 +132,8 @@ process_sources (GcalApplication *application)
gint arr_length, i = 0;
GQuark color_id;
const gchar* color_str;
GdkRGBA color;
gchar* color_str;
gchar **new_css_snippets;
gchar *new_css_data;
@@ -148,10 +149,13 @@ process_sources (GcalApplication *application)
{
source = l->data;
color_str = get_color_name_from_source (source);
get_color_name_from_source (source, &color);
color_str = gdk_rgba_to_string (&color);
color_id = g_quark_from_string (color_str);
new_css_snippets[i] = g_strdup_printf (CSS_TEMPLATE, color_id, color_str);
g_free (color_str);
}
g_list_free (sources);