[gnome-calendar] month-view: move variables around
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] month-view: move variables around
- Date: Sat, 25 Nov 2017 13:44:19 +0000 (UTC)
commit f8ce4937c2baf169cbb67d9ad863421ecd974c4b
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat Nov 25 11:40:08 2017 -0200
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 5a811b3..31dac06 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]