From: Sergio Villar Senin Date: Fri, 16 Mar 2007 13:41:44 +0000 (+0000) Subject: * Various fixes X-Git-Tag: git_migration_finished~3973 X-Git-Url: http://git.maemo.org/git/?a=commitdiff_plain;ds=sidebyside;h=fc96f72a62af755e7832031864cb935270706023;hp=a1854a1c03ed50129e1d7ef346aef4fc89bc65fa;p=modest * Various fixes pmo-trunk-r909 --- diff --git a/src/modest-tny-account-store.c b/src/modest-tny-account-store.c index 7a679cf..2688360 100644 --- a/src/modest-tny-account-store.c +++ b/src/modest-tny-account-store.c @@ -392,11 +392,8 @@ modest_tny_account_store_new (ModestAccountMgr *account_mgr, TnyDevice *device) obj = G_OBJECT(g_object_new(MODEST_TYPE_TNY_ACCOUNT_STORE, NULL)); priv = MODEST_TNY_ACCOUNT_STORE_GET_PRIVATE(obj); - priv->account_mgr = account_mgr; - g_object_ref (G_OBJECT(priv->account_mgr)); - - priv->device = device; - g_object_ref (priv->device); + priv->account_mgr = g_object_ref (G_OBJECT(account_mgr)); + priv->device = g_object_ref (device); priv->session = tny_session_camel_new (TNY_ACCOUNT_STORE(obj)); @@ -684,7 +681,7 @@ modest_tny_account_store_set_get_pass_func (ModestTnyAccountStore *self, TnySessionCamel* tny_account_store_get_session (TnyAccountStore *self) { - g_return_val_if_fail (self, NULL); + g_return_val_if_fail (self, NULL); return MODEST_TNY_ACCOUNT_STORE_GET_PRIVATE (self)->session; } diff --git a/src/modest-tny-account.c b/src/modest-tny-account.c index e634120..94e18a5 100644 --- a/src/modest-tny-account.c +++ b/src/modest-tny-account.c @@ -249,7 +249,7 @@ modest_tny_account_new_for_local_folders (ModestAccountMgr *account_mgr, TnySess url = camel_url_new ("maildir:", NULL); camel_url_set_path (url, maildir); /* Needed by tinymail's DBC assertions */ - camel_url_set_host (url, "localhost"); + camel_url_set_host (url, "localhost"); url_string = camel_url_to_string (url, 0); tny_account_set_url_string (TNY_ACCOUNT(tny_account), url_string);