]> saetta.ns0.it Git - solipa/libsolipa/commitdiff
Adattamento a libcamel 3.8.x.
authorAndrea Zagli <azagli@libero.it>
Tue, 19 Nov 2013 21:42:46 +0000 (21:42 +0000)
committerAndrea Zagli <azagli@libero.it>
Tue, 19 Nov 2013 21:42:46 +0000 (21:42 +0000)
.anjuta/session/anjuta.session
.anjuta/session/dock-layout.xml
.anjuta_sym_db.db
.gitignore
configure.ac
src/Makefile.am
src/mail.c
src/solipa.c

index f515c2b10e3ba175fde3bd24c9b113b2472a8242..70a28604a47969bc79be1136cc6618c8c49aab22 100644 (file)
@@ -1,21 +1,16 @@
-
 [Anjuta]
 Maximized=1
-Geometry=1366x745+0+1
-
-[Project Manager]
-Shortcut=libsolipa//libsolipa//src//libsolipa.la%%%libsolipa//libsolipa//src//libsolipaooo.la%%%libsolipa//libsolipa//tests//allegato%%%libsolipa//libsolipa//tests//mail%%%libsolipa//libsolipa//tests//mail_get_addresses_from_string%%%libsolipa//libsolipa//tests//mailui%%%libsolipa//libsolipa//tests//ooo%%%libsolipa//libsolipa//tests//progresswindow%%%libsolipa//libsolipa//tests//utils%%%libsolipa//libsolipa//tests//utils_codfisc_piva%%%libsolipa//libsolipa//tests//utils_format_money%%%libsolipa//libsolipa//tests//utils_gdatetime%%%libsolipa//libsolipa//tests//utils_infobar%%%libsolipa//libsolipa//tests//utils_round
-Expand=libsolipa.la%%%libsolipa%%%libsolipa//libsolipa
-
-[File Loader]
-Files=file:///home/andreaz/files/comune/solipa/libsolipa/src/utils.c#130
+Geometry=1366x715+0+27
 
 [Document Manager]
 bookmarks=<?xml version="1.0" encoding="UTF-8"?>\n<bookmarks/>\n
 
+[Project Manager]
+Expand=libsolipa
+
 [Execution]
 Run in terminal=2
-Working directories=file:///home/andreaz/files/comune/solipa/libsolipa
+Working directories=../../../../../files/comune/solipa/libsolipa
 
 [Build]
 Configuration list=1:Default:%%%1:Debug:Debug%%%1:Profiling:Profiling%%%1:Optimized:Optimized
index b35c6dbff1b8a460ea6ccdccdb4012320f949ea8..fd5c4a4bc87dfc6bb6c362a21fb18d34da624a82 100644 (file)
@@ -1,2 +1,2 @@
 <?xml version="1.0"?>
-<dock-layout><layout name="__default__"><dock name="__dock_1" floating="no" width="-1" height="-1" floatx="0" floaty="0"><paned orientation="horizontal" locked="no" position="1008"><notebook orientation="vertical" locked="no" page="0"><item name="AnjutaDocumentManager" orientation="vertical" locked="no"/><item name="AnjutaDevhelpDisplay" orientation="vertical" locked="no"/><item name="AnjutaTerminal" orientation="vertical" locked="no"/></notebook><paned orientation="vertical" locked="no" position="336"><notebook orientation="vertical" locked="no" page="0"><item name="AnjutaProjectManager" orientation="vertical" locked="no"/><item name="AnjutaFileManager" orientation="vertical" locked="no"/></notebook><notebook orientation="vertical" locked="no" page="1"><item name="AnjutaDevhelpIndex" orientation="vertical" locked="no"/><item name="AnjutaSymbolDB" orientation="vertical" locked="no"/></notebook></paned></paned></dock></layout></dock-layout>
+<dock-layout><layout name="__default__"><dock name="__dock_1" floating="no" width="-1" height="-1" floatx="0" floaty="0" skip-taskbar="yes"><paned orientation="horizontal" locked="no" iconified="no" closed="no" position="1008"><notebook orientation="vertical" locked="no" iconified="no" closed="no" page="0"><item name="AnjutaDocumentManager" orientation="vertical" locked="no" iconified="no" closed="no"/><item name="AnjutaDevhelpDisplay" orientation="vertical" locked="no" iconified="no" closed="no"/><item name="AnjutaTerminal" orientation="vertical" locked="no" iconified="no" closed="no"/></notebook><paned orientation="vertical" locked="no" iconified="no" closed="no" position="336"><notebook orientation="vertical" locked="no" iconified="no" closed="no" page="0"><item name="AnjutaProjectManager" orientation="vertical" locked="no" iconified="no" closed="no"/><item name="AnjutaFileManager" orientation="vertical" locked="no" iconified="no" closed="no"/></notebook><notebook orientation="vertical" locked="no" iconified="no" closed="no" page="0"><item name="AnjutaDevhelpIndex" orientation="vertical" locked="no" iconified="no" closed="no"/><item name="AnjutaSymbolDB" orientation="vertical" locked="no" iconified="no" closed="yes"/></notebook></paned></paned></dock></layout></dock-layout>
index 6f5d3cead9ac4ac4af1216b20c0c2d0b267f59c0..a79f5d0a423df85fbfffeef2097d485b8119453e 100644 (file)
Binary files a/.anjuta_sym_db.db and b/.anjuta_sym_db.db differ
index 10f734e2d1d4e1af4872c1ef1764be0550ce530a..2d270ec4f7afffdf3fefcee920c8259327659adc 100644 (file)
@@ -1,3 +1,4 @@
+compile
 *~
 *.rpath
 *.pot
@@ -55,6 +56,7 @@ tests/mailui
 tests/ooo
 tests/progresswindow
 tests/utils
+tests/utils_apri_collegamento
 tests/utils_codfisc_piva
 tests/utils_format_money
 tests/utils_gdatetime
index ac17bc20f16d0ead5b9c4c6efff97ee4cabb8c12..e5e43585f2057735f311841a3958ae9aba6e5ccd 100644 (file)
@@ -40,10 +40,10 @@ PKG_CHECK_MODULES(SOLIPA, [gobject-2.0 >= 2.24.0
 AC_SUBST(SOLIPA_CFLAGS)
 AC_SUBST(SOLIPA_LIBS)
 
-PKG_CHECK_MODULES(CAMEL, camel-1.2 >= 3.4, [camel34_found=yes], [camel34_found=no])
+PKG_CHECK_MODULES(CAMEL, camel-1.2 >= 3.8, [camel38_found=yes], [camel38_found=no])
 
 camel3_found=no
-if test x$camel34_found = xno; then
+if test x$camel38_found = xno; then
        PKG_CHECK_MODULES(CAMEL, camel-provider-1.2 >= 3, [camel3_found=yes], [camel3_found=no])
 
        if test x$camel3_found = xno; then
@@ -57,8 +57,8 @@ fi
 AC_SUBST(CAMEL_CFLAGS)
 AC_SUBST(CAMEL_LIBS)
 
-AC_SUBST(CAMEL34_FOUND)
-AM_CONDITIONAL(HAVE_CAMEL34, test $camel34_found = yes)
+AC_SUBST(CAMEL38_FOUND)
+AM_CONDITIONAL(HAVE_CAMEL38, test $camel38_found = yes)
 AC_SUBST(CAMEL3_FOUND)
 AM_CONDITIONAL(HAVE_CAMEL3, test $camel3_found = yes)
 
index d7efa0b59d3503708727c7a56c4fe53a9726dc5a..1905935e9341741d73eb977ac8678ea34268c6c7 100644 (file)
@@ -10,8 +10,8 @@ LIBS = $(SOLIPA_LIBS) \
        $(CAMEL_LIBS) \
        $(WIN32_LIBS)
 
-if HAVE_CAMEL34
-CAMEL3=-DCAMEL3=\"yes\"
+if HAVE_CAMEL38
+CAMEL3=-DCAMEL3=\"yes\" -DCAMEL38=\"yes\"
 else
 if HAVE_CAMEL3
 CAMEL3=-DCAMEL3=\"yes\"
index d544d91a36d6fd37fc8f76d1bb11d833c72d4229..976d32eb1dab6777cdf44d62866503ad03fd9df6 100644 (file)
@@ -600,7 +600,11 @@ solipa_mail_send (SolipaMail *mail, const gchar *url)
                                   error != NULL && error->message != NULL ? error->message : "no details");
                        return;
                }
+#ifdef CAMEL38
+       trans = camel_session_ref_service_by_url (solipa_get_camel_session (priv->solipa), camel_url, CAMEL_PROVIDER_TRANSPORT);
+#else
        trans = camel_session_get_service_by_url (solipa_get_camel_session (priv->solipa), camel_url, CAMEL_PROVIDER_TRANSPORT);
+#endif
 #else
        trans = camel_session_get_service (solipa_get_camel_session (priv->solipa), url, CAMEL_PROVIDER_TRANSPORT, &error);
 #endif
@@ -612,7 +616,9 @@ solipa_mail_send (SolipaMail *mail, const gchar *url)
                }
 
        error = NULL;
-#ifdef CAMEL3
+#ifdef CAMEL38
+       ret = camel_service_connect_sync (trans, NULL, &error);
+#elif defined CAMEL3
        ret = camel_service_connect_sync (trans, &error);
 #else
        ret = camel_service_connect (trans, &error);
@@ -658,6 +664,8 @@ solipa_mail_send (SolipaMail *mail, const gchar *url)
 
        error = NULL;
 #ifdef CAMEL3
+       camel_service_disconnect_sync (trans, FALSE, NULL, NULL);
+#elif defined CAMEL3
        camel_service_disconnect_sync (trans, FALSE, NULL);
 #else
        camel_service_disconnect (trans, FALSE, NULL);
index 1d1ce5ddb941189665650097ac128bce55f3cb07..77d4183de5d43d012d31c347510ad1ed1797933a 100644 (file)
@@ -317,6 +317,12 @@ solipa_dispose (GObject *gobject)
                        priv->gtkbuilder = NULL;
                }
 
+       if (priv->camel_tmpdir)
+               {
+                       /* rimuovo la directory temporanea */
+                       g_rmdir (priv->camel_tmpdir);
+               }
+
        if (priv->camel_session)
                {
                        g_object_unref (priv->camel_session);