Give EDataCalFactory a proper "new" function.
authorMatthew Barnes <mbarnes@redhat.com>
Thu, 29 Sep 2011 18:06:27 +0000 (14:06 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Thu, 29 Sep 2011 18:06:27 +0000 (14:06 -0400)
calendar/libedata-cal/e-data-cal-factory.c
calendar/libedata-cal/e-data-cal-factory.h
docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
docs/reference/calendar/libedata-cal/tmpl/e-data-cal-factory.sgml
services/evolution-calendar-factory/evolution-calendar-factory.c

index 3557ef4..ed56e8d 100644 (file)
@@ -438,3 +438,13 @@ e_data_cal_factory_init (EDataCalFactory *factory)
                (GDestroyNotify) g_free,
                (GDestroyNotify) NULL);
 }
+
+EDBusServer *
+e_data_cal_factory_new (GCancellable *cancellable,
+                        GError **error)
+{
+       return g_initable_new (
+               E_TYPE_DATA_CAL_FACTORY,
+               cancellable, error, NULL);
+}
+
index 6026df2..bf21f41 100644 (file)
@@ -58,7 +58,9 @@ struct _EDataCalFactoryClass {
        EDataFactoryClass parent_class;
 };
 
-GType  e_data_cal_factory_get_type             (void);
+GType          e_data_cal_factory_get_type     (void);
+EDBusServer *  e_data_cal_factory_new          (GCancellable *cancellable,
+                                                GError **error);
 
 G_END_DECLS
 
index 7fea0bc..e4c85e4 100644 (file)
@@ -324,6 +324,7 @@ ECalBackendSExpClass
 <FILE>e-data-cal-factory</FILE>
 <TITLE>EDataCalFactory</TITLE>
 EDataCalFactory
+e_data_cal_factory_new
 <SUBSECTION Standard>
 E_DATA_CAL_FACTORY
 E_IS_DATA_CAL_FACTORY
index 0cceaf6..12c2942 100644 (file)
@@ -28,3 +28,13 @@ Implementation of the calendar CORBA factory.
 @parent: 
 @priv: 
 
+<!-- ##### FUNCTION e_data_cal_factory_new ##### -->
+<para>
+
+</para>
+
+@cancellable: 
+@error: 
+@Returns: 
+
+
index 403f888..40bf10b 100644 (file)
@@ -122,8 +122,7 @@ main (gint argc,
        /* Migrate user data from ~/.evolution to XDG base directories. */
        evolution_calendar_factory_migrate_basedir ();
 
-       server = g_initable_new (
-               E_TYPE_DATA_CAL_FACTORY, NULL, &error, NULL);
+       server = e_data_cal_factory_new (NULL, &error);
 
        if (error != NULL) {
                g_printerr ("%s\n", error->message);