]> saetta.ns0.it Git - libgtkform/commitdiff
Useless call to g_strdup_printf.
authorAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Tue, 18 Sep 2012 11:26:53 +0000 (13:26 +0200)
committerAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Tue, 18 Sep 2012 11:26:53 +0000 (13:26 +0200)
libgtkform/fieldinteger.c

index 47718ca5f9330cf48a489cf93ec8724d486052af..ccd9552169cf9fef477a170b39c5fa847155a18b 100644 (file)
@@ -318,9 +318,10 @@ gtk_form_field_integer_is_valid (GtkFormField *field)
                        if (str_value != NULL && g_strcmp0 (g_strstrip (str_value), "") != 0)
                                {
                                        if (g_strcmp0 (g_strconcat (g_strdup_printf ("%d", value),
-                                                                   IS_GTK_FORM_WIDGET_SPIN (fw) ? g_strdup_printf (",%06d", 0) : "", NULL), 
+                                                                   IS_GTK_FORM_WIDGET_SPIN (fw) ? ",000000" : "", NULL), 
                                                       str_value) != 0)
-                                               {
+                                               {g_message ("%s %s", g_strconcat (g_strdup_printf ("%d", value),
+                                                                   IS_GTK_FORM_WIDGET_SPIN (fw) ? ",000000" : "", NULL), str_value);
                                                        g_free (str_value);
                                                        return FALSE;
                                                }