X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-tny-account-store.c;h=5373c30929b8774bb490dd04a766886b8e9ab4d0;hp=e67040346cf17a578cc5fff211989ef2e74cb727;hb=68c46ab60057371ae8752ce6a4b63e835401e019;hpb=2404a84fbe9d2dbf9009572eb506bd09a4493cab diff --git a/src/modest-tny-account-store.c b/src/modest-tny-account-store.c index e670403..5373c30 100644 --- a/src/modest-tny-account-store.c +++ b/src/modest-tny-account-store.c @@ -85,7 +85,7 @@ modest_tny_account_store_get_type (void) my_type = g_type_register_static (TNY_TYPE_ACCOUNT_STORE, "ModestTnyAccountStore", &my_info, 0); - g_type_add_interface_static (my_type, TNY_TYPE_ACCOUNT_STORE_IFACE, + g_type_add_interface_static (my_type, TNY_TYPE_ACCOUNT_STORE_IFACE, &iface_info); } return my_type; @@ -165,7 +165,7 @@ modest_tny_account_store_finalize (GObject *obj) g_object_unref (G_OBJECT(priv->tny_session_camel)); priv->tny_session_camel = NULL; } - + if (priv->device) { g_object_unref (G_OBJECT(priv->device)); priv->device = NULL; @@ -221,8 +221,6 @@ get_password (TnyAccountIface *account, const gchar *prompt) ModestTnyAccountStorePrivate *priv; gchar *val; - g_message (__FUNCTION__); - g_return_val_if_fail (account, NULL); key = tny_account_iface_get_id (account); @@ -233,8 +231,8 @@ get_password (TnyAccountIface *account, const gchar *prompt) val = modest_account_mgr_get_server_account_string (priv->modest_acc_mgr, key, MODEST_ACCOUNT_PASSWORD, - NULL); - if (!val || strlen(val)==0) + NULL); + if (!val) { /* FIXME: * append the prompt to the emitted signal, @@ -429,12 +427,9 @@ modest_tny_account_store_get_store_accounts (TnyAccountStoreIface *iface) MODEST_PROTO_TYPE_STORE, NULL, FALSE); - g_message ("accounts: %d", g_slist_length (accounts)); tny_accounts = tny_accounts_from_server_accounts (self, accounts, TRUE); g_slist_free (accounts); - g_message ("store accounts: %d", g_list_length (tny_accounts)); - - + /* * FIXME: after gconf notification support is added, * we can simply return priv->store_account @@ -502,9 +497,6 @@ tny_account_store_get_session (TnyAccountStore *self) priv = MODEST_TNY_ACCOUNT_STORE_GET_PRIVATE(self); - g_message ("returning tny session camel %p", - priv->tny_session_camel); - return priv->tny_session_camel; }