]> saetta.ns0.it Git - libgtkform/commitdiff
Bugfixes and adjustments. ui-decoder
authorAndrea Zagli <azagli@libero.it>
Sun, 19 Jun 2011 06:59:15 +0000 (08:59 +0200)
committerAndrea Zagli <azagli@libero.it>
Sun, 19 Jun 2011 06:59:15 +0000 (08:59 +0200)
Updated translation files.

po/POTFILES.in
po/it.po
src/form.c
ui/gtkformdecoder.c
ui/gtkformwidgetdecoder.c

index efb956a7540499763fa0fcc9cd4887ccefc48164..b403784bcb97a8239e81966a621909a9b7207646 100644 (file)
@@ -14,3 +14,4 @@ src/widgetentry.c
 src/widgetlabel.c
 src/widgetspin.c
 src/widgettextview.c
+ui/gtkformdecoder.c
index 881035983a9acecc7d3a82a6477100c482c335b6..fb159655c81a75c43d222245526f17e2e8bede74 100644 (file)
--- a/po/it.po
+++ b/po/it.po
@@ -7,8 +7,8 @@ msgid ""
 msgstr ""
 "Project-Id-Version: 0.1.0\n"
 "Report-Msgid-Bugs-To: Andrea Zagli <azagli@libero.it>\n"
-"POT-Creation-Date: 2011-06-18 18:38+0200\n"
-"PO-Revision-Date: 2011-06-18 19:52+0200\n"
+"POT-Creation-Date: 2011-06-19 08:57+0200\n"
+"PO-Revision-Date: 2011-06-19 09:52+0200\n"
 "Last-Translator: Andrea Zagli <azagli@libero.it>\n"
 "Language-Team: Italian <>\n"
 "Language: it\n"
@@ -141,3 +141,34 @@ msgstr "Errore nell'esecuzione di GtkFormWidgetOnChangeOp: %s."
 #: ../src/widget.c:383
 msgid "No GdaEx object inside GtkFormWidget."
 msgstr "Nessun oggetto GdaEx all'interno di GtkFormWidget."
+
+#: ../ui/gtkformdecoder.c:213
+msgid "Open"
+msgstr "Apri"
+
+#: ../ui/gtkformdecoder.c:224
+msgid "Find"
+msgstr "Trova"
+
+#: ../ui/gtkformdecoder.c:322
+#, c-format
+msgid ""
+"Error on parsing sql string: %s\n"
+"%s"
+msgstr ""
+"Errore nell'analisi della stringa sql: %s\n"
+"%s"
+
+#: ../ui/gtkformdecoder.c:342
+#, c-format
+msgid "Error on setting holder's value: %s"
+msgstr "Errore nell'impostazione del valore dell'holder: %s"
+
+#: ../ui/gtkformdecoder.c:356
+#, c-format
+msgid "Error on executing decoding: %s"
+msgstr "Errore nell'esecuzione di GtkFormWidgetOnChangeOp: %s"
+
+#: ../ui/gtkformdecoder.c:372
+msgid "No GdaEx object inside GtkFormDecoder."
+msgstr "Nessun oggetto GdaEx all'interno di GtkFormDecoder."
index e6b2e3d2f2772cd206c493505d6f2f54203871d4..13a6acd16ed86935daf6590cdaeeb09598f05e01 100644 (file)
@@ -2776,7 +2776,10 @@ gtk_form_load_modules (GtkForm *form)
                                        if (module != NULL)
                                                {
                                                        priv->modules = g_list_append (priv->modules, (gpointer)module);
-                                                       g_message (_("Loaded %s."), filename);
+                                                       if (priv->debug > 0)
+                                                               {
+                                                                       g_message (_("Loaded %s."), filename);
+                                                               }
                                                }
                                        else
                                                {
index 7c7f6052d1e2c432a45f8778a6bc0cd2d4deae45..079326b2fe687d83e9ab7e500c2aecf3bb7fae31 100644 (file)
@@ -216,7 +216,6 @@ gtk_form_decoder_init (GtkFormDecoder *decoder)
        icon = gtk_image_new_from_stock ("gtk-open", GTK_ICON_SIZE_MENU);
        gtk_container_add (GTK_CONTAINER (priv->btn_open), icon);
        gtk_widget_show (icon);
-       gtk_widget_show (priv->btn_open);
 
        g_signal_connect (G_OBJECT (priv->btn_open), "clicked",
                          G_CALLBACK (gtk_form_decoder_on_btn_open_clicked), (gpointer)decoder);
index 7089fa0d369595a6a13d9d1405d2098a13012232..50cf9b37a816ae1def8de8912c12cfa55c12e487 100644 (file)
@@ -116,20 +116,12 @@ gtk_form_widget_decoder_xml_parsing (GtkFormWidget *fwidget, xmlNodePtr xml_node
                {
                        if (xmlStrcmp (child->name, (const xmlChar *)"sql") == 0)
                                {
-                                       g_object_set (G_OBJECT (w), "sql", gtk_form_field_boolean_str_to_boolean ((gchar *)xmlNodeGetContent (child)), NULL);
+                                       g_object_set (G_OBJECT (w), "sql", (gchar *)xmlNodeGetContent (child), NULL);
                                }
                        else if (xmlStrcmp (child->name, (const xmlChar *)"connection-name") == 0)
                                {
                                        connection_name = g_strdup ((gchar *)xmlNodeGetContent (child));
                                }
-                       else if (xmlStrcmp (child->name, (const xmlChar *)"show-btn-clean") == 0)
-                               {
-                                       g_object_set (G_OBJECT (w), "show-btn-clean", gtk_form_field_boolean_str_to_boolean ((gchar *)xmlNodeGetContent (child)), NULL);
-                               }
-                       else if (xmlStrcmp (child->name, (const xmlChar *)"show-btn-open") == 0)
-                               {
-                                       g_object_set (G_OBJECT (w), "show-btn-open", gtk_form_field_boolean_str_to_boolean ((gchar *)xmlNodeGetContent (child)), NULL);
-                               }
 
                        child = child->next;
                }