aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-01-19 01:26:44 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-01-19 01:26:44 +0800
commit9bbb56e9b2eae46e8d2a51390569db8d9d9df2d1 (patch)
tree44e996cd013125f514b91e6774c8373e66ca699e
parent89b748800033c3527b07a0527453a7a014894c3d (diff)
downloadgsoc2013-evolution-9bbb56e9b2eae46e8d2a51390569db8d9d9df2d1.tar.gz
gsoc2013-evolution-9bbb56e9b2eae46e8d2a51390569db8d9d9df2d1.tar.zst
gsoc2013-evolution-9bbb56e9b2eae46e8d2a51390569db8d9d9df2d1.zip
Made it return a gboolean; it was completely ignoring the return value
2001-01-17 Federico Mena Quintero <federico@ximian.com> * backend/pas/pas-book-factory.c (pas_book_factory_activate): Made it return a gboolean; it was completely ignoring the return value from register_factory(). svn path=/trunk/; revision=7624
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/backend/pas/pas-book-factory.c8
-rw-r--r--addressbook/backend/pas/pas-book-factory.h2
3 files changed, 11 insertions, 5 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 1d3e27859b..87fa6f0fd5 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,9 @@
+2001-01-17 Federico Mena Quintero <federico@ximian.com>
+
+ * backend/pas/pas-book-factory.c (pas_book_factory_activate): Made
+ it return a gboolean; it was completely ignoring the return value
+ from register_factory().
+
2001-01-17 Larry Ewing <lewing@helixcode.com>
* backend/ebook/.cvsignore: add evolution-gnomecard-importer.
diff --git a/addressbook/backend/pas/pas-book-factory.c b/addressbook/backend/pas/pas-book-factory.c
index 6584bc8589..e1470c1fad 100644
--- a/addressbook/backend/pas/pas-book-factory.c
+++ b/addressbook/backend/pas/pas-book-factory.c
@@ -447,13 +447,13 @@ register_factory (CORBA_Object obj)
/**
* pas_book_factory_activate:
*/
-void
+gboolean
pas_book_factory_activate (PASBookFactory *factory)
{
- g_return_if_fail (factory != NULL);
- g_return_if_fail (PAS_IS_BOOK_FACTORY (factory));
+ g_return_val_if_fail (factory != NULL, FALSE);
+ g_return_val_if_fail (PAS_IS_BOOK_FACTORY (factory), FALSE);
- register_factory (bonobo_object_corba_objref (BONOBO_OBJECT (factory)));
+ return register_factory (bonobo_object_corba_objref (BONOBO_OBJECT (factory)));
}
static void
diff --git a/addressbook/backend/pas/pas-book-factory.h b/addressbook/backend/pas/pas-book-factory.h
index 7e4690adf1..7f8754ce2f 100644
--- a/addressbook/backend/pas/pas-book-factory.h
+++ b/addressbook/backend/pas/pas-book-factory.h
@@ -35,7 +35,7 @@ void pas_book_factory_register_backend (PASBookFactory
int pas_book_factory_get_n_backends (PASBookFactory *factory);
-void pas_book_factory_activate (PASBookFactory *factory);
+gboolean pas_book_factory_activate (PASBookFactory *factory);
GtkType pas_book_factory_get_type (void);