[gnome-calendar/gnome-3-24] month-view : add margin to overflow layout
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/gnome-3-24] month-view : add margin to overflow layout
- Date: Fri, 9 Jun 2017 02:42:51 +0000 (UTC)
commit 6ce5d5b7d616e3316a0d54de3826e2b4bbc4e985
Author: Abdullahi Usman <abdullahismn7 gmail com>
Date: Fri May 12 03:33:56 2017 +0100
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/views/gcal-month-view.c b/src/views/gcal-month-view.c
index 280b042..b8a4f42 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]