[gnome-calendar] month-view: restore ::days_delay calculation.



commit 94a6e8bf7ed159bf3d1ecdbc754e67c4f3ffaf67
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Thu Jan 29 10:54:27 2015 -0500

    month-view: restore ::days_delay calculation.
    
    This was wrongly lost on commit fa2f300362693392ecd1ca150e86d6895351ee5c

 src/gcal-month-view.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index 586f257..76fdce5 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -642,6 +642,7 @@ gcal_month_view_set_property (GObject       *object,
           g_free (priv->date);
 
         priv->date = g_value_dup_boxed (value);
+        priv->days_delay = (time_day_of_week (1, priv->date->month - 1, priv->date->year) - 
priv->first_weekday + 7) % 7;
         gtk_widget_queue_draw (GTK_WIDGET (object));
         break;
       }


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