]> saetta.ns0.it Git - solipa/libsolipa/commitdiff
Typo in nuova classe SolipaCamel.
authorAndrea Zagli <azagli@libero.it>
Sat, 15 Apr 2017 08:10:33 +0000 (10:10 +0200)
committerAndrea Zagli <azagli@libero.it>
Sat, 15 Apr 2017 08:10:33 +0000 (10:10 +0200)
src/camel.c
src/camelsession.c
src/solipa.c
src/solipa.h

index bf01cb3c6ed01585dc9034f55c591e377f9c6fb4..623a9fe15c6687c2f7710df32644244672d4e1aa 100644 (file)
@@ -97,6 +97,12 @@ SolipaCamel
        camel_provider_init ();
 
        priv->camel_session = solipa_camel_session_new (priv->camel_tmpdir);
+       if (!CAMEL_IS_SESSION (priv->camel_session))
+               {
+                       g_warning ("Unable to create CamelSession.");
+                       g_object_unref (solipa);
+                       solipa = NULL;
+               }
 
        return solipa;
 }
@@ -106,7 +112,7 @@ CamelSession
 {
        SolipaCamelPrivate *priv;
 
-       g_return_val_if_fail (IS_SOLIPA (solipa), NULL);
+       g_return_val_if_fail (IS_SOLIPA_CAMEL (solipa), NULL);
 
        priv = SOLIPA_CAMEL_GET_PRIVATE (solipa);
 
index 820c22e565017f586eeae9878ece6725794803ba..7b98a7101a0833f65700ec659caf1e4700d667e2 100644 (file)
@@ -85,4 +85,4 @@ solipa_camel_session_authenticate_sync (CamelSession *session,
                                         GError **error)
 {
        return (camel_service_authenticate_sync (service, mechanism, cancellable, error) == CAMEL_AUTHENTICATION_ACCEPTED);
-}
\ No newline at end of file
+}
index 293a5f5cf64500a551b6798ffa8330ad885c506f..03153b5e582babebcad7aaf994d3daa1e857069c 100644 (file)
@@ -193,7 +193,7 @@ solipa_set_from_keyfile (Solipa *solipa, const gchar *filename)
 }
 
 G_DEPRECATED
-SolipaCamel
+CamelSession
 *solipa_get_camel_session (Solipa *solipa)
 {
        SolipaPrivate *priv;
@@ -202,7 +202,7 @@ SolipaCamel
 
        priv = SOLIPA_GET_PRIVATE (solipa);
 
-       return priv->camel_session;
+       return solipa_camel_get_camel_session (priv->camel_session);
 }
 
 G_DEPRECATED
index acb81f38ba98ea681f7e56c96d84d8cd9f3cf390..01596ce87fe95d71a7c4b7635e8dfe3c761177b1 100644 (file)
@@ -62,7 +62,7 @@ Solipa *solipa_new_with_keyfile (const gchar *filename);
 void solipa_set_from_keyfile (Solipa *solipa, const gchar *filename);
 
 G_DEPRECATED
-SolipaCamel *solipa_get_camel_session (Solipa *solipa);
+CamelSession *solipa_get_camel_session (Solipa *solipa);
 
 G_DEPRECATED
 void solipa_set_gdaex (Solipa *solipa, GdaEx *gdaex);