From 91408b355b3ff831867407fbf9aefd6e4589ce67 Mon Sep 17 00:00:00 2001 From: Abdullahi Usman Date: Fri, 12 May 2017 03:33:56 +0100 Subject: [PATCH] month-view : add margin to overflow layout The overflow layout sit at the bottom of a cell to display "Other X events" when there is no room to accomodate more. The issue is that the overflow layout does not have margin property like other views(layouts) in the cell, so instead it appears either too far from or too close to the border depending on the text it accomodates. We can fix this by setting the margin property. https://bugzilla.gnome.com/show_bug.cgi?id=7771581 --- src/views/gcal-month-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/gcal-month-view.c b/src/views/gcal-month-view.c index 280b0421..b8a4f42d 100644 --- a/src/views/gcal-month-view.c +++ b/src/views/gcal-month-view.c @@ -1666,7 +1666,7 @@ gcal_month_view_draw (GtkWidget *widget, cell_width, font_height + padding.bottom * 2); } - gtk_render_layout (context, cr, cell_width * column, y_value, overflow_layout); + gtk_render_layout (context, cr, cell_width * column + padding.left, y_value, overflow_layout); gtk_style_context_remove_class (context, "overflow"); gtk_style_context_restore (context);