From 1c8d39f87dd5d969f043122dc3049ebec74f530e Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Thu, 20 Jul 2006 05:36:13 +0000 Subject: Fixes bug #347773 svn path=/trunk/; revision=32354 --- calendar/gui/e-day-view-main-item.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'calendar/gui/e-day-view-main-item.c') diff --git a/calendar/gui/e-day-view-main-item.c b/calendar/gui/e-day-view-main-item.c index 3286194e0c..6af0ef2fcd 100644 --- a/calendar/gui/e-day-view-main-item.c +++ b/calendar/gui/e-day-view-main-item.c @@ -1330,8 +1330,9 @@ e_day_view_main_item_draw_day_event (EDayViewMainItem *dvmitem, if (day_view->editing_event_day == day && day_view->editing_event_num == event_num && (GTK_WIDGET_HAS_FOCUS (day_view->main_canvas))) { -// item_x -= 1; -// item_y -= 2; + /* For embossing Item selection */ + item_x -= 1; + item_y -= 2; /* Vertical Line */ cairo_save (cr); @@ -1604,14 +1605,15 @@ e_day_view_main_item_draw_day_event (EDayViewMainItem *dvmitem, cairo_set_source_rgb (cr, 1, 1, 1); cairo_show_text (cr, end_time); cairo_restore (cr); - - if (scroll_flag < bar_y2) - event->end_minute += day_view->mins_per_row; - else - event->end_minute -= day_view->mins_per_row; } } + if (bar_y2 > scroll_flag){ + event->end_minute += day_view->mins_per_row; + } else if (bar_y2 < scroll_flag) { + event->end_minute -= day_view->mins_per_row; + } + comp = e_cal_component_new (); e_cal_component_set_icalcomponent (comp, icalcomponent_new_clone (event->comp_data->icalcomp)); -- cgit