[gnome-panel] clock: Set correct month on startup



commit 7256e65b99cc3dfa0ece45c795b758a83e3b722d
Author: Marek Kasik <mkasik redhat com>
Date:   Fri Oct 12 08:36:25 2012 +0200

    clock: Set correct month on startup
    
    Map number of month from g_date_time_get_day_of_month()
    to gtk_calendar_select_month() correctly.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=681325

 applets/clock/calendar-window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/applets/clock/calendar-window.c b/applets/clock/calendar-window.c
index 6c9a31a..458852c 100644
--- a/applets/clock/calendar-window.c
+++ b/applets/clock/calendar-window.c
@@ -1426,7 +1426,7 @@ calendar_window_create_calendar (CalendarWindow *calwin)
 	now = g_date_time_new_now_local ();
 
         gtk_calendar_select_month (GTK_CALENDAR (calendar),
-                                   g_date_time_get_month (now),
+                                   g_date_time_get_month (now) - 1,
                                    g_date_time_get_year (now));
         gtk_calendar_select_day (GTK_CALENDAR (calendar),
 				 g_date_time_get_day_of_month (now));



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