aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-day-view-main-item.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-08-22 00:29:57 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-08-22 00:29:57 +0800
commit015f505d02a9994f4d167436aa0aa554e0cff22d (patch)
treecc704aefb80fbff844395011e739f64b464f4d0e /calendar/gui/e-day-view-main-item.c
parent79b16710ff7295dfe2d9eee7fa436ca91749e61b (diff)
downloadgsoc2013-evolution-015f505d02a9994f4d167436aa0aa554e0cff22d.tar
gsoc2013-evolution-015f505d02a9994f4d167436aa0aa554e0cff22d.tar.gz
gsoc2013-evolution-015f505d02a9994f4d167436aa0aa554e0cff22d.tar.bz2
gsoc2013-evolution-015f505d02a9994f4d167436aa0aa554e0cff22d.tar.lz
gsoc2013-evolution-015f505d02a9994f4d167436aa0aa554e0cff22d.tar.xz
gsoc2013-evolution-015f505d02a9994f4d167436aa0aa554e0cff22d.tar.zst
gsoc2013-evolution-015f505d02a9994f4d167436aa0aa554e0cff22d.zip
Use CalComponent instead of iCalObject. #if some alarm stuff
2000-08-21 JP Rosevear <jpr@helixcode.com> * gui/e-day-view-main-item.c (e_day_view_main_item_draw_day_event): Use CalComponent instead of iCalObject. #if some alarm stuff svn path=/trunk/; revision=4903
Diffstat (limited to 'calendar/gui/e-day-view-main-item.c')
-rw-r--r--calendar/gui/e-day-view-main-item.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/calendar/gui/e-day-view-main-item.c b/calendar/gui/e-day-view-main-item.c
index b3a531f62e..8353c0497e 100644
--- a/calendar/gui/e-day-view-main-item.c
+++ b/calendar/gui/e-day-view-main-item.c
@@ -445,7 +445,7 @@ e_day_view_main_item_draw_day_event (EDayViewMainItem *dvmitem,
gint item_x, item_y, item_w, item_h, bar_y1, bar_y2;
GtkStyle *style;
GdkGC *gc;
- iCalObject *ico;
+ CalComponent *comp;
gint num_icons, icon_x, icon_y, icon_x_inc, icon_y_inc;
gint max_icon_w, max_icon_h;
gboolean draw_reminder_icon, draw_recurrence_icon;
@@ -546,15 +546,18 @@ e_day_view_main_item_draw_day_event (EDayViewMainItem *dvmitem,
icon_x = item_x + E_DAY_VIEW_BAR_WIDTH + E_DAY_VIEW_ICON_X_PAD;
icon_y = item_y + E_DAY_VIEW_EVENT_BORDER_HEIGHT
+ E_DAY_VIEW_ICON_Y_PAD;
- ico = event->ico;
+ comp = event->comp;
+#if 0
if (ico->dalarm.enabled || ico->malarm.enabled
|| ico->palarm.enabled || ico->aalarm.enabled) {
draw_reminder_icon = TRUE;
num_icons++;
}
+#endif
- if (ico->recur) {
+ if (cal_component_has_rrules (comp)
+ || cal_component_has_rdates (comp)) {
draw_recurrence_icon = TRUE;
num_icons++;
}