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
+3 -3
View File
@@ -135,7 +135,7 @@ fill_sources_menu (GcalEditDialog *dialog)
source = E_SOURCE (aux->data);
/* retrieve color */
gdk_rgba_parse (&color, get_color_name_from_source (source));
get_color_name_from_source (source, &color);
pix = gcal_get_pixbuf_from_color (&color, 16);;
/* menu item */
@@ -195,7 +195,7 @@ on_calendar_selected (GtkWidget *menu_item,
GdkPixbuf *pix;
/* retrieve color */
gdk_rgba_parse (&color, get_color_name_from_source (source));
get_color_name_from_source (source, &color);
pix = gcal_get_pixbuf_from_color (&color, 16);
gtk_image_set_from_pixbuf (GTK_IMAGE (priv->source_image), pix);
@@ -821,7 +821,7 @@ gcal_edit_dialog_set_event_data (GcalEditDialog *dialog,
gtk_entry_set_text (GTK_ENTRY (priv->summary_entry), e_summary.value);
/* dialog titlebar's title & subtitle */
gdk_rgba_parse (&color, get_color_name_from_source (data->source));
get_color_name_from_source (data->source, &color);
pix = gcal_get_pixbuf_from_color (&color, 16);
gtk_image_set_from_pixbuf (GTK_IMAGE (priv->source_image), pix);