aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/year-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/year-view.c')
-rw-r--r--calendar/gui/year-view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar/gui/year-view.c b/calendar/gui/year-view.c
index 31d0d5c9e2..786270bea3 100644
--- a/calendar/gui/year-view.c
+++ b/calendar/gui/year-view.c
@@ -106,8 +106,8 @@ idle_handler (gpointer data)
/* Space for the titles and months */
- width = yv->canvas.width;
- height = yv->canvas.height - head_height;
+ width = GTK_WIDGET (yv)->allocation.width;
+ height = GTK_WIDGET (yv)->allocation.height - head_height;
/* Offsets */