From 2c639d2d0058b8f788172c56e586e833e253d689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erick=20P=C3=A9rez=20Castellanos?= Date: Thu, 18 Dec 2014 22:21:18 -0500 Subject: [PATCH] month-view: queue draw on size_allocate It should not be necessary to queue a draw operation after ::size_allocate. This has been discussed over with Gtk+ devs, as soon as the bug is fixed these statements will goes away. --- src/gcal-month-view.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c index 181349ce..e870663a 100644 --- a/src/gcal-month-view.c +++ b/src/gcal-month-view.c @@ -803,8 +803,9 @@ gcal_month_view_size_allocate (GtkWidget *widget, } } - /* if (g_hash_table_size (priv->overflown_days) != 0) */ - /* gtk_widget_queue_draw_area (widget, allocation->x, allocation->y, allocation->width, allocation->height); */ + /* FIXME: remove when Gtk bug is fixed */ + if (g_hash_table_size (priv->overflown_days) != 0) + gtk_widget_queue_draw_area (widget, allocation->x, allocation->y, allocation->width, allocation->height); } static gboolean