priv->records_updated = NULL;
priv->fields_updated = NULL;
priv->debug = 0;
- priv->log_file = 0;
-}
-
-static ZakAudit
-*zak_audit_new_ ()
-{
- ZakAudit *zak_audit;
- ZakAuditPrivate *priv;
+ priv->log_file = NULL;
gchar *localedir;
- zak_audit = ZAK_AUDIT (g_object_new (zak_audit_get_type (), NULL));
-
priv = ZAK_AUDIT_GET_PRIVATE (zak_audit);
/* gui */
priv->guifile = g_build_filename (priv->guidir, "libzakaudit.ui", NULL);
priv->gtkbuilder = gtk_builder_new ();
-
- return zak_audit;
}
static gboolean
{
va_list ap;
- ZakAudit *zak_audit = zak_audit_new_ ();
+ ZakAudit *zak_audit = ZAK_AUDIT (g_object_new (zak_audit_get_type (), NULL));
ZakAuditPrivate *priv = ZAK_AUDIT_GET_PRIVATE (zak_audit);
{
va_list ap;
- ZakAudit *zak_audit = zak_audit_new_ ();
+ ZakAudit *zak_audit = ZAK_AUDIT (g_object_new (zak_audit_get_type (), NULL));
ZakAuditPrivate *priv = ZAK_AUDIT_GET_PRIVATE (zak_audit);
/*
* test1.c
*
- * Copyright (C) 2005-2015 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2005-2019 Andrea Zagli <azagli@libero.it>
*
* This file is part of libzakaudit.
*
gtk_init (&argc, &argv);
+ gdaex = gdaex_new ();
+
ctx = g_option_context_new ("");
g_option_context_add_main_entries (ctx, entries, "audit_test1");
+ g_option_context_add_group (ctx, gdaex_get_option_group (gdaex));
+ //g_option_context_add_group (ctx, zak_audit_get_option_group (g_object_new (TYPE_ZAK_AUDIT, NULL)));
if (!g_option_context_parse (ctx, &argc, &argv, &error))
{
g_warning ("Errore nell'analisi della riga comandi: %s.",
return 0;
}
- gdaex = gdaex_new_from_string (cnc_db);
+ gdaex_set_cnc_string (gdaex, cnc_db);
conn = (GdaConnection *)gdaex_get_gdaconnection (gdaex);
parser = gda_connection_create_parser (conn);
if (parser == NULL)