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.
This commit is contained in:
Georges Basile Stavracas Neto
2017-11-25 11:43:52 -02:00
parent 63f3078a80
commit f8ce4937c2
+5 -4
View File
@@ -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);