diff options
author | JP Rosevear <jpr@helixcode.com> | 2000-08-22 00:24:27 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2000-08-22 00:24:27 +0800 |
commit | 79b16710ff7295dfe2d9eee7fa436ca91749e61b (patch) | |
tree | fb2a12bbbddbf5b3c803e16837f459440e4ee74c /calendar | |
parent | 1a3df0d9bbd62710ebb6d78d053a211ca0f5b734 (diff) | |
download | gsoc2013-evolution-79b16710ff7295dfe2d9eee7fa436ca91749e61b.tar gsoc2013-evolution-79b16710ff7295dfe2d9eee7fa436ca91749e61b.tar.gz gsoc2013-evolution-79b16710ff7295dfe2d9eee7fa436ca91749e61b.tar.bz2 gsoc2013-evolution-79b16710ff7295dfe2d9eee7fa436ca91749e61b.tar.lz gsoc2013-evolution-79b16710ff7295dfe2d9eee7fa436ca91749e61b.tar.xz gsoc2013-evolution-79b16710ff7295dfe2d9eee7fa436ca91749e61b.tar.zst gsoc2013-evolution-79b16710ff7295dfe2d9eee7fa436ca91749e61b.zip |
Use CalComponent instead of iCalObject. #if some alarm stuff
2000-08-21 JP Rosevear <jpr@helixcode.com>
* gui/e-week-view-event-item.c (e_day_view_top_draw_long_event):
Use CalComponent instead of iCalObject. #if some alarm stuff
svn path=/trunk/; revision=4902
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 15 | ||||
-rw-r--r-- | calendar/gui/e-day-view-top-item.c | 9 |
2 files changed, 21 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index abdd8b5090..c2671dd3e8 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,5 +1,20 @@ 2000-08-21 JP Rosevear <jpr@helixcode.com> + * gui/e-week-view-event-item.c (e_day_view_top_draw_long_event): + Use CalComponent instead of iCalObject. #if some alarm stuff + +2000-08-21 JP Rosevear <jpr@helixcode.com> + + * gui/e-day-view.h: Update prototypes + + * gui/e-day-view.c (e_day_view_on_unrecur_appointment): + Remove commented out portions. + + * gui/e-week-view.c (e_week_view_on_unrecur_appointment): + Tidy. + +2000-08-21 JP Rosevear <jpr@helixcode.com> + * gui/e-day-view.c (e_day_view_update_event): Use CalComponent instead of iCalObject. Work around not having a compare diff --git a/calendar/gui/e-day-view-top-item.c b/calendar/gui/e-day-view-top-item.c index 45872238a7..88e30885ca 100644 --- a/calendar/gui/e-day-view-top-item.c +++ b/calendar/gui/e-day-view-top-item.c @@ -328,7 +328,7 @@ e_day_view_top_item_draw_long_event (EDayViewTopItem *dvtitem, gint start_day, end_day; gint item_x, item_y, item_w, item_h; gint text_x, icon_x, icon_y, icon_x_inc; - iCalObject *ico; + CalComponent *comp; gchar buffer[16]; gint hour, minute, offset, time_width, time_x, min_end_time_x; gboolean draw_start_triangle, draw_end_triangle; @@ -356,7 +356,7 @@ e_day_view_top_item_draw_long_event (EDayViewTopItem *dvtitem, gc = day_view->main_gc; fg_gc = style->fg_gc[GTK_STATE_NORMAL]; bg_gc = style->bg_gc[GTK_STATE_NORMAL]; - ico = event->ico; + comp = event->comp; /* Draw the lines across the top & bottom of the entire event. */ gdk_draw_line (drawable, fg_gc, @@ -430,7 +430,8 @@ e_day_view_top_item_draw_long_event (EDayViewTopItem *dvtitem, icon_x = text_x - icon_x_inc - x; icon_y = item_y + 1 + E_DAY_VIEW_ICON_Y_PAD - y; - if (ico->recur) { + if (cal_component_has_rrules (comp) + || cal_component_has_rdates (comp)) { gdk_gc_set_clip_origin (gc, icon_x, icon_y); gdk_gc_set_clip_mask (gc, day_view->recurrence_mask); gdk_draw_pixmap (drawable, gc, @@ -441,6 +442,7 @@ e_day_view_top_item_draw_long_event (EDayViewTopItem *dvtitem, icon_x -= icon_x_inc; } +#if 0 if (ico->dalarm.enabled || ico->malarm.enabled || ico->palarm.enabled || ico->aalarm.enabled) { gdk_gc_set_clip_origin (gc, icon_x, icon_y); @@ -453,6 +455,7 @@ e_day_view_top_item_draw_long_event (EDayViewTopItem *dvtitem, icon_x -= icon_x_inc; } gdk_gc_set_clip_mask (gc, NULL); +#endif /* Draw the start & end times, if necessary. Note that GtkLabel adds 1 to the ascent so we must do that to be |