aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/year-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/year-view.c')
-rw-r--r--calendar/year-view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar/year-view.c b/calendar/year-view.c
index 31d0d5c9e2..786270bea3 100644
--- a/calendar/year-view.c
+++ b/calendar/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 */