[evolution/wip/gsettings] Make "open_calendar" function as expected.



commit 3a16adcc61029291742bddb1c84ac053fad79885
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Fri Jul 15 11:27:49 2011 +0530

    Make "open_calendar" function as expected.

 modules/calendar/e-cal-shell-backend.c  |    4 ++--
 plugins/itip-formatter/itip-formatter.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/modules/calendar/e-cal-shell-backend.c b/modules/calendar/e-cal-shell-backend.c
index 4b2692e..744cd60 100644
--- a/modules/calendar/e-cal-shell-backend.c
+++ b/modules/calendar/e-cal-shell-backend.c
@@ -536,7 +536,7 @@ cal_shell_backend_handle_uri_cb (EShellBackend *shell_backend,
 
 		header = (gchar *) cp;
 		header[header_len] = '\0';
-		cp += header_len + 1;
+		cp += header_len + 2;
 
 		content_len = strcspn (cp, "&");
 
@@ -557,7 +557,7 @@ cal_shell_backend_handle_uri_cb (EShellBackend *shell_backend,
 			comp_rid = g_strdup (content);
 		g_free (content);
 
-		cp += content_len;
+		cp += content_len + 1;
 		if (*cp == '&') {
 			cp++;
 			if (strcmp (cp, "amp;") == 0)
diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c
index f5b2bcd..46b7abb 100644
--- a/plugins/itip-formatter/itip-formatter.c
+++ b/plugins/itip-formatter/itip-formatter.c
@@ -2129,7 +2129,7 @@ idle_open_cb (gpointer data)
 	start = isodate_from_time_t (pitip->start_time);
 	end = isodate_from_time_t (pitip->end_time);
 	m = mail_msg_new (&open_calendar_info);
-	m->command = g_strdup_printf ("evolution \"calendar://?startdate=%s&enddate=%s\"", start, end);
+	m->command = g_strdup_printf ("evolution \"calendar:///?startdate=&%s&enddate=&%s\"", start, end);
 	mail_msg_slow_ordered_push (m);
 
 	g_free (start);



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