[evolution] Bug #704832 - Event removal doesn't update week/month views properly



commit 7727f426a2e7d4ef4e7b90da810052ce36aae789
Author: Milan Crha <mcrha redhat com>
Date:   Tue Nov 19 14:40:44 2013 +0100

    Bug #704832 - Event removal doesn't update week/month views properly

 calendar/gui/e-week-view-layout.c |    2 +-
 calendar/gui/e-week-view.c        |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/calendar/gui/e-week-view-layout.c b/calendar/gui/e-week-view-layout.c
index 7c39e8c..09286d7 100644
--- a/calendar/gui/e-week-view-layout.c
+++ b/calendar/gui/e-week-view-layout.c
@@ -483,7 +483,7 @@ e_week_view_layout_get_span_position (EWeekViewEvent *event,
                } else {
                        gint day_x, day_y, rows = 0;
                        e_week_view_layout_get_day_position (
-                               end_day_of_week, multi_week_view, 1,
+                               end_day_of_week - 1, multi_week_view, 1,
                                display_start_day, compress_weekend,
                                &day_x, &day_y, &rows);
 
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 7e1be0a..89e62d9 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -3637,6 +3637,7 @@ e_week_view_reshape_event_span (EWeekView *week_view,
                "clip_height", (gdouble) text_h,
                NULL);
        e_canvas_item_move_absolute (span->text_item, text_x, text_y);
+       gnome_canvas_item_request_update (span->background_item);
 
        g_object_unref (comp);
        g_object_unref (layout);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]