event-widget: add .timed style class to timed events

Another CSS tool for us to play with.
This commit is contained in:
Georges Basile Stavracas Neto
2017-09-14 13:26:28 -03:00
parent f42d5d0598
commit 7dd42d4186
+13
View File
@@ -437,6 +437,19 @@ gcal_event_widget_set_event_internal (GcalEventWidget *self,
self->summary_label,
"label",
G_BINDING_DEFAULT | G_BINDING_SYNC_CREATE);
/*
* If the event is a timed, single-day event, draw it differently
* from all-day or multi-day events.
*/
if (!gcal_event_get_all_day (event) && !gcal_event_is_multiday (event))
{
GtkStyleContext *context;
context = gtk_widget_get_style_context (GTK_WIDGET (self));
gtk_style_context_add_class (context, "timed");
}
}