Use consistent URIs when opening calendars by using
authorRoss Burton <ross@openedhand.com>
Tue, 27 Feb 2007 12:14:23 +0000 (12:14 +0000)
committerRoss Burton <rburton@src.gnome.org>
Tue, 27 Feb 2007 12:14:23 +0000 (12:14 +0000)
2007-02-27  Ross Burton  <ross@openedhand.com>

* libecal/e-cal.c:
Use consistent URIs when opening calendars by using
e_source_new_with_absolute_uri() in e_cal_new_from_uri (#333507).

svn path=/trunk/; revision=7634

calendar/ChangeLog
calendar/libecal/e-cal.c

index ba5b9f4..2d70d67 100644 (file)
@@ -1,3 +1,9 @@
+2007-02-27  Ross Burton  <ross@openedhand.com>
+
+       * libecal/e-cal.c:
+       Use consistent URIs when opening calendars by using
+       e_source_new_with_absolute_uri() in e_cal_new_from_uri (#333507).
+
 2007-02-12  Kjartan Maraas  <kmaraas@gnome.org>
 
        * libecal/e-cal.c: (process_detached_instances): Don't crash
index 0e428cd..f506084 100644 (file)
@@ -1529,18 +1529,13 @@ e_cal_new (ESource *source, ECalSourceType type)
 ECal *
 e_cal_new_from_uri (const gchar *uri, ECalSourceType type)
 {
-       ESourceGroup *group;
        ESource *source;
        ECal *cal;
 
-       group = e_source_group_new ("", uri);
-       source = e_source_new ("", "");
-       e_source_set_group (source, group);
-
+       source = e_source_new_with_absolute_uri ("", uri);
        cal = e_cal_new (source, type);
 
        g_object_unref (source);
-       g_object_unref (group);
 
        return cal;
 }