[gnome-panel] clock applet: Pass the correct month to Evolution command line
- From: Rodrigo Moya <rodrigo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] clock applet: Pass the correct month to Evolution command line
- Date: Mon, 2 May 2011 13:57:38 +0000 (UTC)
commit 241e288c0a9d30f9f2e8d608b0bbd950c1ac959c
Author: Rodrigo Moya <rodrigo gnome-db org>
Date: Mon May 2 15:55:19 2011 +0200
clock applet: Pass the correct month to Evolution command line
gtk_calendar_get_date returns the month between 0 and 11, so we need to add
1 to the month being passed to Evolution
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 c01bd6a..548b91b 100644
--- a/applets/clock/calendar-window.c
+++ b/applets/clock/calendar-window.c
@@ -1245,7 +1245,7 @@ calendar_day_activated (GtkCalendar *calendar,
argument = g_strdup_printf ("calendar:///?startdate="
"%.4d%.2d%.2d",
- year, month, day);
+ year, month + 1, day);
clock_launch_calendar_app (calwin, argument);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]