beagle r4748 - trunk/beagle/beagled/EvolutionDataServerQueryable
- From: dbera svn gnome org
- To: svn-commits-list gnome org
- Subject: beagle r4748 - trunk/beagle/beagled/EvolutionDataServerQueryable
- Date: Tue, 6 May 2008 16:42:43 +0100 (BST)
Author: dbera
Date: Tue May 6 15:42:43 2008
New Revision: 4748
URL: http://svn.gnome.org/viewvc/beagle?rev=4748&view=rev
Log:
Use the correct protocol for evolution-tasks "task:///...". Fixes #530624.
NOTE: evolution on this machine does not open tasks from command line unless it is already opened in the tasks component. It works for calendar items. This is an evolution bug.
Modified:
trunk/beagle/beagled/EvolutionDataServerQueryable/CalContainer.cs
Modified: trunk/beagle/beagled/EvolutionDataServerQueryable/CalContainer.cs
==============================================================================
--- trunk/beagle/beagled/EvolutionDataServerQueryable/CalContainer.cs (original)
+++ trunk/beagle/beagled/EvolutionDataServerQueryable/CalContainer.cs Tue May 6 15:42:43 2008
@@ -188,8 +188,20 @@
private Uri GetComponentUri (string id)
{
- return new Uri (String.Format ("calendar://uri-class-sucks/?source-uid={0}&comp-uid={1}",
- this.source.Uid, id));
+ string protocol;
+ switch (cal_source_type) {
+ case CalSourceType.Todo:
+ protocol = "task";
+ break;
+
+ default:
+ // FIXME: Could not find the protocol for Journal
+ protocol = "calendar";
+ break;
+ }
+
+ return new Uri (String.Format ("{2}://uri-class-sucks/?source-uid={0}&comp-uid={1}",
+ this.source.Uid, id, protocol));
}
/////////////////////////////////////
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]