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.
This commit is contained in:
Erick Pérez Castellanos
2014-12-18 22:21:18 -05:00
parent 780bebf871
commit 2c639d2d00
+3 -2
View File
@@ -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