From f8ce4937c2baf169cbb67d9ad863421ecd974c4b Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Sat, 25 Nov 2017 11:40:08 -0200 Subject: [PATCH] month-view: move variables around Just to make it clear that these variables are only used when we really need to reprocess the event widgets. --- src/views/gcal-month-view.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/views/gcal-month-view.c b/src/views/gcal-month-view.c index 5a811b3c..31dac066 100644 --- a/src/views/gcal-month-view.c +++ b/src/views/gcal-month-view.c @@ -1823,10 +1823,6 @@ gcal_month_view_size_allocate (GtkWidget *widget, GtkAllocation child_allocation; GtkAllocation old_alloc; GcalMonthView *self; - gdouble vertical_cell_space [42]; - gdouble size_left [42]; - gint allocated_events_at_day [42] = { 0, }; - gint events_at_day [42] = { 0, }; gint header_height; gint grid_height; gint i; @@ -1882,6 +1878,11 @@ gcal_month_view_size_allocate (GtkWidget *widget, allocation->width != old_alloc.width || allocation->height != old_alloc.height) { + gdouble vertical_cell_space [42]; + gdouble size_left [42]; + gint allocated_events_at_day [42] = { 0, }; + gint events_at_day [42] = { 0, }; + /* Remove every widget' parts, but the master widget */ cleanup_overflow_information (self);