diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2001-07-01 10:04:46 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2001-07-01 10:04:46 +0800 |
commit | 915c3e0e0cfa6ca8751455c19fd509ac0855652d (patch) | |
tree | c9172a3c0546182cc23b9c440e945fef3ec7808c /calendar/gui/e-week-view.c | |
parent | 1a5710ebc0c786cb102578c0eb5ee82a979c3065 (diff) | |
download | gsoc2013-evolution-915c3e0e0cfa6ca8751455c19fd509ac0855652d.tar gsoc2013-evolution-915c3e0e0cfa6ca8751455c19fd509ac0855652d.tar.gz gsoc2013-evolution-915c3e0e0cfa6ca8751455c19fd509ac0855652d.tar.bz2 gsoc2013-evolution-915c3e0e0cfa6ca8751455c19fd509ac0855652d.tar.lz gsoc2013-evolution-915c3e0e0cfa6ca8751455c19fd509ac0855652d.tar.xz gsoc2013-evolution-915c3e0e0cfa6ca8751455c19fd509ac0855652d.tar.zst gsoc2013-evolution-915c3e0e0cfa6ca8751455c19fd509ac0855652d.zip |
draw icons per category
2001-07-01 Rodrigo Moya <rodrigo@ximian.com>
* gui/e-day-view-main-item.c
(e_day_view_main_item_draw_day_event): draw icons per category
* gui/e-day-view-top-item.c
(e_day_view_top_item_draw_long_event): draw icons per category
* gui/e-day-view.c
(e_day_view_reshape_long_event):
(e_day_view_reshape_day_event): calculate space for category icons
* gui/e-week-view-event-item.c
(e_week_view_event_item_draw_icons): draw icons per category
* gui/e-week-view.c
(e_week_view_reshape_event_span): calculate space for category icons
svn path=/trunk/; revision=10646
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r-- | calendar/gui/e-week-view.c | 7 |
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. */ |