[gnome-calendar] month-view: fix drawing of overflow indicator



commit 3f093c5e13b839545131e74aea07f15269539bf9
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Mon Dec 22 10:00:24 2014 -0500

    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 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index 24897d1..49ee26f 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]