[gnome-calendar] month-view: queue draw on size_allocate
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] month-view: queue draw on size_allocate
- Date: Fri, 19 Dec 2014 13:53:21 +0000 (UTC)
commit 2c639d2d0058b8f788172c56e586e833e253d689
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Thu Dec 18 22:21:18 2014 -0500
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 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index 181349c..e870663 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]