diff options
author | Rodrigo Moya <rodrigo@src.gnome.org> | 2005-05-16 19:43:23 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2005-05-16 19:43:23 +0800 |
commit | 3c3d116d6ca48861fd9d7efd89d82d7f1d33db3d (patch) | |
tree | 758aa010a507d1e1e24843edc345f54473e6d639 /calendar/gui/e-day-view-main-item.c | |
parent | 903becfede2bbdc739de5da88ca1341cac3ababf (diff) | |
download | gsoc2013-evolution-3c3d116d6ca48861fd9d7efd89d82d7f1d33db3d.tar.gz gsoc2013-evolution-3c3d116d6ca48861fd9d7efd89d82d7f1d33db3d.tar.zst gsoc2013-evolution-3c3d116d6ca48861fd9d7efd89d82d7f1d33db3d.zip |
Reverted Marcus Baines patch
svn path=/trunk/; revision=29374
Diffstat (limited to 'calendar/gui/e-day-view-main-item.c')
-rw-r--r-- | calendar/gui/e-day-view-main-item.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/calendar/gui/e-day-view-main-item.c b/calendar/gui/e-day-view-main-item.c index 6203e264e8..c936342f74 100644 --- a/calendar/gui/e-day-view-main-item.c +++ b/calendar/gui/e-day-view-main-item.c @@ -35,7 +35,6 @@ #include "e-day-view-layout.h" #include "e-day-view-main-item.h" #include "ea-calendar.h" -#include <libecal/e-cal-time-util.h> static void e_day_view_main_item_set_arg (GtkObject *o, GtkArg *arg, guint arg_id); @@ -300,44 +299,6 @@ e_day_view_main_item_draw (GnomeCanvasItem *canvas_item, GdkDrawable *drawable, x, y, width, height, day); } - - - if (e_day_view_get_show_marcus_bains (day_view)) { - icaltimezone *zone; - struct icaltimetype time_now, day_start; - int marcus_bains_y; - GdkColor mb_color; - - gdk_gc_set_foreground (gc, &day_view->colors[E_DAY_VIEW_COLOR_MARCUS_BAINS_LINE]); - - if (day_view->marcus_bains_day_view_color && gdk_color_parse (day_view->marcus_bains_day_view_color, &mb_color)) { - GdkColormap *colormap; - - colormap = gtk_widget_get_colormap (GTK_WIDGET (day_view)); - if (gdk_colormap_alloc_color (colormap, &mb_color, TRUE, TRUE)) { - gdk_gc_set_foreground (gc, &mb_color); - } - } - - zone = e_calendar_view_get_timezone (E_CALENDAR_VIEW (day_view)); - time_now = icaltime_current_time_with_zone (zone); - - for (day = 0; day < day_view->days_shown; day++) { - day_start = icaltime_from_timet_with_zone (day_view->day_starts[day], FALSE, zone); - - if ((day_start.year == time_now.year) && - (day_start.month == time_now.month) && - (day_start.day == time_now.day)) { - - grid_x1 = day_view->day_offsets[day] - x + E_DAY_VIEW_BAR_WIDTH; - grid_x2 = day_view->day_offsets[day + 1] - x - 1; - marcus_bains_y = (time_now.hour * 60 + time_now.minute) * day_view->row_height / day_view->mins_per_row - y; - gdk_draw_line (drawable, gc, grid_x1, marcus_bains_y, grid_x2, marcus_bains_y); - } - } - } - - } |