From 6cc6e4f7e7f303c055ab947db942b10673962a2a Mon Sep 17 00:00:00 2001 From: Yash Singh Date: Wed, 22 Mar 2017 04:59:56 +0530 Subject: [PATCH] week-grid: remove unneeded usage of natural-height As the assignment of display-text, and in turn that of event-widget's height, is taken care of in event-widget, we no longer need to consider natural- height, while assigning height in week-grid. This patch fixes this issue by removing natural-height, and directly assigning the desired value to height. https://bugzilla.gnome.org/show_bug.cgi?id=778070 --- src/views/gcal-week-grid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/gcal-week-grid.c b/src/views/gcal-week-grid.c index f64901c3..3b7284e2 100644 --- a/src/views/gcal-week-grid.c +++ b/src/views/gcal-week-grid.c @@ -720,7 +720,7 @@ gcal_week_grid_size_allocate (GtkWidget *widget, &margin); width = column_width / events_at_range - margin.left - margin.right; - height = MAX ((data->end - data->start) * minutes_height - margin.top - margin.bottom, natural_height); + height = (data->end - data->start) * minutes_height - margin.top - margin.bottom; offset = (width + margin.left + margin.right) * widget_index; if (ltr)