aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index c620560227..fbe9ee435a 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -2392,10 +2392,17 @@ e_week_view_reshape_event_span (EWeekView *week_view,
/* Calculate how many icons we need to show. */
num_icons = 0;
if (show_icons) {
+ GSList *categories_list;
+
if (cal_component_has_alarms (comp))
num_icons++;
if (cal_component_has_recurrences (comp))
num_icons++;
+
+ cal_component_get_categories_list (comp, &categories_list);
+ num_icons += g_slist_length (categories_list);
+
+ cal_component_free_categories_list (categories_list);
}
/* Create the background canvas item if necessary. */