[gnome-calendar/gnome-3-24] week-grid: remove unneeded usage of natural-height
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/gnome-3-24] week-grid: remove unneeded usage of natural-height
- Date: Thu, 23 Mar 2017 22:58:55 +0000 (UTC)
commit 7ccac396bdebfaf6f1933a652cfb99e0b2a5c1ad
Author: Yash Singh <yashdev10p gmail com>
Date: Wed Mar 22 04:59:56 2017 +0530
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/views/gcal-week-grid.c b/src/views/gcal-week-grid.c
index f64901c..3b7284e 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]