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
+1 -1
View File
@@ -237,7 +237,7 @@ get_result_metas_cb (GcalShellSearchProvider *search_provider,
e_cal_component_get_summary (data->event_component, &summary);
g_variant_builder_add (&builder, "{sv}", "name", g_variant_new_string (summary.value));
gdk_rgba_parse (&color, get_color_name_from_source (data->source));
get_color_name_from_source (data->source, &color);
gicon = get_circle_pixbuf_from_color (&color, 128);
icon_variant = g_icon_serialize (G_ICON (gicon));
g_variant_builder_add (&builder, "{sv}", "icon", icon_variant);