]> saetta.ns0.it Git - solipa/territorio/commitdiff
Utilizzo di libzakutils.
authorAndrea Zagli <azagli@libero.it>
Thu, 22 Sep 2016 15:17:45 +0000 (17:17 +0200)
committerAndrea Zagli <azagli@libero.it>
Thu, 22 Sep 2016 15:17:45 +0000 (17:17 +0200)
configure.ac
src/importaviecivilia.c

index 5b55e2205a42448e0e6cf3fd85268409163d59d7..59477563ff7af33a5077bc0316faac2841b10418 100644 (file)
@@ -41,6 +41,7 @@ PKG_CHECK_MODULES(TERRITORIO, [gio-2.0 >= 2.36
                           libgtkformui >= 0.5.0
                           libzakauthe >= 0.2.0
                           libzakautho >= 0.0.5
+                          libzakutils
                           libsolipa >= 0.5.0])
 
 AC_SUBST(TERRITORIO_CFLAGS)
index eaf59970b71e55cb7f936927606972c99bf19db3..a442602f307dca3db0c1c598707c5667e3714158 100644 (file)
@@ -1,5 +1,5 @@
-/* 
- * Copyright (C) 2011-2013 Andrea Zagli <azagli@libero.it>
+/*
+ * Copyright (C) 2011-2016 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -18,6 +18,7 @@
  */
 
 #include <libgda-ui/libgda-ui.h>
+#include <libzakutils/libzakutils.h>
 #include <libsolipa/libsolipa.h>
 
 #include "importaviecivilia.h"
@@ -205,7 +206,7 @@ TerritorioImportaVieCivilia
                                                                        id_vie++;
 
                                                                        tmp = g_string_new (nome);
-                                                                       solipa_gstring_initial_capital (tmp);
+                                                                       zak_utils_gstring_initial_capital (tmp);
                                                                        sql = g_strdup_printf ("INSERT INTO vie (id, nome, id_comuni, cap)"
                                                                                               " VALUES (%d, '%s',"
                                                                                               " (SELECT c.id FROM comuni AS c INNER JOIN province AS p ON c.id_province = p.id WHERE p.cod_istat || c.cod_istat = '%s'),"
@@ -233,7 +234,7 @@ TerritorioImportaVieCivilia
                                                                        id_vie = gdaex_data_model_get_value_integer_at (dm_territorio, 0, 0);
 
                                                                        tmp = g_string_new (nome);
-                                                                       solipa_gstring_initial_capital (tmp);
+                                                                       zak_utils_gstring_initial_capital (tmp);
 
                                                                        /* aggiorno la via */
                                                                        sql = g_strdup_printf ("UPDATE vie"