From 5c1654deb7c9113ef80143eb1d6a833baeafc289 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Mon, 17 Jul 2006 12:10:43 +0000 Subject: [PATCH] * the constructor now returns ModestTnyAccountStore instances, not GObjects pmo-trunk-r381 --- src/modest-tny-account-store.c | 6 ++---- src/modest-tny-account-store.h | 5 ++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/modest-tny-account-store.c b/src/modest-tny-account-store.c index 6f0071a..ef13dd7 100644 --- a/src/modest-tny-account-store.c +++ b/src/modest-tny-account-store.c @@ -70,8 +70,6 @@ enum { PW_INVALID }; -static const gchar *transport_protocols[] = { "smtp", NULL }; - typedef struct _ModestTnyAccountStorePrivate ModestTnyAccountStorePrivate; struct _ModestTnyAccountStorePrivate { @@ -353,7 +351,7 @@ modest_tny_account_store_finalize (GObject *obj) } -GObject* +ModestTnyAccountStore* modest_tny_account_store_new (ModestAccountMgr *modest_acc_mgr) { GObject *obj; @@ -390,7 +388,7 @@ modest_tny_account_store_new (ModestAccountMgr *modest_acc_mgr) { return NULL; } - return obj; + return MODEST_TNY_ACCOUNT_STORE(obj); } diff --git a/src/modest-tny-account-store.h b/src/modest-tny-account-store.h index a92d81e..96482d4 100644 --- a/src/modest-tny-account-store.h +++ b/src/modest-tny-account-store.h @@ -84,10 +84,9 @@ GType modest_tny_account_store_get_type (void) G_GNUC_CONST; * * creates new (tinymail) account store for account manager modest_acc_mgr * - * Returns: GObject of newly created account store + * Returns: newly created account store or NULL in case of error */ -GObject* modest_tny_account_store_new (ModestAccountMgr *modest_acc_mgr); - +ModestTnyAccountStore* modest_tny_account_store_new (ModestAccountMgr *modest_acc_mgr); /** -- 1.7.9.5