/*
- * Copyright (C) 2010-2016 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2017 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
#include <sql-parser/gda-sql-parser.h>
#include <libgdaex/libgdaex.h>
+#include <libzakutils/libzakutils.h>
#include <libgtkform/field.h>
#include <libgtkform/fielddatetime.h>
#include <libgtkform/fieldinteger.h>
element = zak_form_gtk_form_element_entry_new ();
zak_form_gtk_form_element_set_widget_from_gtkbuilder (ZAK_FORM_GTK_FORM_ELEMENT (element), priv->gtkbuilder, "entry42");
- zak_form_gtk_form_element_set_label (ZAK_FORM_GTK_FORM_ELEMENT (element), gtk_builder_get_object (priv->gtkbuilder, "label139"));
+ zak_form_gtk_form_element_set_label (ZAK_FORM_GTK_FORM_ELEMENT (element), GTK_WIDGET (gtk_builder_get_object (priv->gtkbuilder, "label139")));
zak_form_element_set_name (element, percorso_field);
zak_form_element_set_provider_type (element, "string");
validator = zak_form_element_validator_notempty_new ();
{
element = zak_form_gtk_form_element_entry_new ();
zak_form_gtk_form_element_set_widget_from_gtkbuilder (element, priv->gtkbuilder, "entry44");
- zak_form_gtk_form_element_set_label (ZAK_FORM_GTK_FORM_ELEMENT (element), gtk_builder_get_object (priv->gtkbuilder, "label141"));
+ zak_form_gtk_form_element_set_label (ZAK_FORM_GTK_FORM_ELEMENT (element), GTK_WIDGET (gtk_builder_get_object (priv->gtkbuilder, "label141")));
zak_form_element_set_name (element, data_field);
zak_form_element_set_provider_type (element, "datetime");
{
element = zak_form_gtk_form_element_entry_new ();
zak_form_gtk_form_element_set_widget_from_gtkbuilder (element, priv->gtkbuilder, "entry8");
- zak_form_gtk_form_element_set_label (ZAK_FORM_GTK_FORM_ELEMENT (element), gtk_builder_get_object (priv->gtkbuilder, "label142"));
+ zak_form_gtk_form_element_set_label (ZAK_FORM_GTK_FORM_ELEMENT (element), GTK_WIDGET (gtk_builder_get_object (priv->gtkbuilder, "label142")));
zak_form_element_set_name (element, dimensione_field);
zak_form_element_set_provider_type (element, "integer");
SolipaAllegatoPrivate *priv = SOLIPA_ALLEGATO_GET_PRIVATE (allegato);
gtk_entry_set_text (GTK_ENTRY (priv->txt_dimensione),
- solipa_format_money (g_strtod (gtk_entry_get_text (GTK_ENTRY (priv->txt_dimensione_nascosto)), NULL), 0, FALSE));
+ zak_utils_format_money (g_strtod (gtk_entry_get_text (GTK_ENTRY (priv->txt_dimensione_nascosto)), NULL), 0, FALSE));
}
static void
/*
- * Copyright (C) 2010-2016 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2017 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
for (i = 0; i < 16; i++)
{
- if (!isdigit (cf[i]) && !('A' <= cf[i] && cf[i] <= 'Z'))
+ if (!g_ascii_isdigit (cf[i]) && !('A' <= cf[i] && cf[i] <= 'Z'))
{
g_warning ("Caratteri non validi (%c).", cf[i]);
return FALSE;
s = 0;
for (i = 1; i <= 13; i += 2)
{
- if (isdigit (cf[i]))
+ if (g_ascii_isdigit (cf[i]))
{
s += cf[i] - '0';
}
for (i = 0; i <= 14; i += 2)
{
c = cf[i];
- if (isdigit (c))
+ if (g_ascii_isdigit (c))
{
c = c - '0' + 'A';
}
for (i = 0; i < 11; i++)
{
- if (!isdigit(piva[i]))
+ if (!g_ascii_isdigit(piva[i]))
{
return FALSE;
}
gchar *stock;
- hbox = gtk_hbox_new (FALSE, 10);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
switch (type)
{
case GTK_MESSAGE_INFO:
/*
- * Copyright (C) 2010-2016 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2017 Andrea Zagli <azagli@libero.it>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
return 0;
}
- if (from == NULL || strcmp (g_strstrip (from), "") == 0)
+ if (from == NULL || g_strcmp0 (g_strstrip (from), "") == 0)
{
g_error ("Occorre specificare il parametro from.\n");
return 0;
return 0;
}
}
- if (to == NULL || strcmp (g_strstrip (to), "") == 0)
+ if (to == NULL || g_strcmp0 (g_strstrip (to), "") == 0)
{
g_error ("Occorre specificare il parametro to.\n");
return 0;
return 0;
}
}
- if (url == NULL || strcmp (g_strstrip (url), "") == 0)
+ if (url == NULL || g_strcmp0 (g_strstrip (url), "") == 0)
{
g_error ("Occorre specificare il parametro url.\n");
return 0;