[gnome-calendar] month-view: better handle overflow background draw
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] month-view: better handle overflow background draw
- Date: Tue, 23 Dec 2014 23:35:18 +0000 (UTC)
commit fb57d5998a755b994dcae506eefb3b2cd9671dd1
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Dec 23 21:35:05 2014 -0200
month-view: better handle overflow background draw
src/gcal-month-view.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index 40895cb..e460f44 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -1240,9 +1240,12 @@ gcal_month_view_draw (GtkWidget *widget,
pango_layout_get_pixel_size (overflow_layout, &font_width, &font_height);
y_value = cell_height * (row + 1 + first_row_gap) - font_height - padding.bottom + start_grid_y;
- if (gtk_widget_is_visible (priv->overflow_popover) && priv->hovered_overflow_indicator == i)
- gtk_render_background (context, cr, cell_width * column, y_value - padding.bottom,
- cell_width, font_height + padding.bottom * 2);
+ if ((!gtk_widget_is_visible (priv->overflow_popover) && priv->hovered_overflow_indicator == i) ||
+ gtk_widget_is_visible (priv->overflow_popover))
+ {
+ gtk_render_background (context, cr, cell_width * column, y_value - padding.bottom,
+ cell_width, font_height + padding.bottom * 2);
+ }
gtk_render_layout (context, cr, cell_width * column, y_value, overflow_layout);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]