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
This commit is contained in:
Abdullahi Usman
2017-05-22 21:57:46 -03:00
committed by Georges Basile Stavracas Neto
parent a647033847
commit 91408b355b
+1 -1
View File
@@ -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);