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

index a61b0bb..3e6809e 100644 (file)
@@ -527,3 +527,11 @@ e_data_book_factory_init (EDataBookFactory *factory)
 #endif
 }
 
+EDBusServer *
+e_data_book_factory_new (GCancellable *cancellable,
+                         GError **error)
+{
+       return g_initable_new (
+               E_TYPE_DATA_BOOK_FACTORY,
+               cancellable, error, NULL);
+}
index d0a977d..13bba49 100644 (file)
@@ -58,6 +58,8 @@ struct _EDataBookFactoryClass {
 };
 
 GType          e_data_book_factory_get_type    (void) G_GNUC_CONST;
+EDBusServer *  e_data_book_factory_new         (GCancellable *cancellable,
+                                                GError **error);
 
 G_END_DECLS
 
index 4a1b1cb..a010756 100644 (file)
@@ -302,6 +302,7 @@ e_data_book_status_get_type
 <FILE>e-data-book-factory</FILE>
 <TITLE>EDataBookFactory</TITLE>
 EDataBookFactory
+e_data_book_factory_new
 <SUBSECTION Standard>
 E_DATA_BOOK_FACTORY
 E_IS_DATA_BOOK_FACTORY
index 05ca591..4227835 100644 (file)
@@ -28,3 +28,13 @@ EDataBookFactory
 @parent: 
 @priv: 
 
+<!-- ##### FUNCTION e_data_book_factory_new ##### -->
+<para>
+
+</para>
+
+@cancellable: 
+@error: 
+@Returns: 
+
+
index fb408c8..4f9016d 100644 (file)
@@ -548,13 +548,6 @@ e-data-book-types
 @factory: 
 @Returns: 
 
-<!-- ##### FUNCTION e_data_book_factory_new ##### -->
-<para>
-
-</para>
-
-@Returns: 
-
 <!-- ##### FUNCTION e_data_book_factory_register_backend ##### -->
 <para>
 
index 3d41dd5..4577e8c 100644 (file)
@@ -114,8 +114,7 @@ main (gint argc,
        /* Migrate user data from ~/.evolution to XDG base directories. */
        evolution_addressbook_factory_migrate_basedir ();
 
-       server = g_initable_new (
-               E_TYPE_DATA_BOOK_FACTORY, NULL, &error, NULL);
+       server = e_data_book_factory_new (NULL, &error);
 
        if (error != NULL) {
                g_printerr ("%s\n", error->message);