From 3f093c5e13b839545131e74aea07f15269539bf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erick=20P=C3=A9rez=20Castellanos?= Date: Mon, 22 Dec 2014 10:00:24 -0500 Subject: [PATCH] month-view: fix drawing of overflow indicator The drawing was happening but the clipping was not including the full widget. Queuing a new draw expands the clip to the whole area of the widget. --- src/gcal-month-view.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c index 24897d19..49ee26ff 100644 --- a/src/gcal-month-view.c +++ b/src/gcal-month-view.c @@ -1237,11 +1237,8 @@ gcal_month_view_draw (GtkWidget *widget, 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); - g_debug ("This is the time to draw the background"); - } + 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); @@ -1566,6 +1563,7 @@ gcal_month_view_button_release (GtkWidget *widget, rebuild_popover_for_day (GCAL_MONTH_VIEW (widget), j - priv->days_delay); gtk_widget_show_all (priv->overflow_popover); + gtk_widget_queue_draw (widget); priv->clicked_cell = -1; priv->pressed_overflow_indicator = -1; priv->start_mark_cell = -1;