[gnome-calendar] week-grid: use a proper function to queue redraw
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] week-grid: use a proper function to queue redraw
- Date: Tue, 14 Mar 2017 23:26:19 +0000 (UTC)
commit c33d8203873056ac451ab2d08ac31e4666a0fb12
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Mar 14 20:17:46 2017 -0300
week-grid: use a proper function to queue redraw
Same as 97698ad1c913 for the Week grid.
src/views/gcal-week-grid.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/views/gcal-week-grid.c b/src/views/gcal-week-grid.c
index d59e123..8f23991 100644
--- a/src/views/gcal-week-grid.c
+++ b/src/views/gcal-week-grid.c
@@ -440,6 +440,14 @@ get_today_column (GcalWeekGrid *self)
}
static gboolean
+on_redraw_timeout_cb (gpointer data)
+{
+ gtk_widget_queue_draw (data);
+
+ return G_SOURCE_CONTINUE;
+}
+
+static gboolean
gcal_week_grid_draw (GtkWidget *widget,
cairo_t *cr)
{
@@ -605,7 +613,7 @@ gcal_week_grid_draw (GtkWidget *widget,
if (self->redraw_timeout_id == 0)
{
self->redraw_timeout_id = g_timeout_add_seconds (5,
- (GSourceFunc) gtk_widget_queue_draw,
+ on_redraw_timeout_cb,
self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]