aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2006-07-20 13:36:13 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2006-07-20 13:36:13 +0800
commit1c8d39f87dd5d969f043122dc3049ebec74f530e (patch)
treee495abbfd43a1a57b78920eefd94163f5641520e
parentcfa1b81a8b9d365f90bee7134c64a92fdc9559f2 (diff)
downloadgsoc2013-evolution-1c8d39f87dd5d969f043122dc3049ebec74f530e.tar.gz
gsoc2013-evolution-1c8d39f87dd5d969f043122dc3049ebec74f530e.tar.zst
gsoc2013-evolution-1c8d39f87dd5d969f043122dc3049ebec74f530e.zip
Fixes bug #347773
svn path=/trunk/; revision=32354
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/e-day-view-main-item.c16
2 files changed, 16 insertions, 7 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 77b4493998..99d5131f38 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,10 @@
+2006-07-19 Rajeev ramanathan <rajeevramanathan_2004@yahoo.co.in>
+
+ ** Fixes bug #347773
+
+ * gui/e-day-view-main-item.c: Bug in Appointment resize preview in calendar
+ day/work-week view is fixed.
+
2006-07-19 Andre Klapper <a9016009@gmx.de>
* gui/dialogs/calendar-setup.c: harmonize strings.
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));