From: Andrea Zagli Date: Sun, 19 Jun 2011 06:59:15 +0000 (+0200) Subject: Bugfixes and adjustments. X-Git-Tag: 0.3.1~1 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=7992cf5ca513aaf9a524bc41c0a4fae69269831b;p=libgtkform Bugfixes and adjustments. Updated translation files. --- diff --git a/po/POTFILES.in b/po/POTFILES.in index efb956a..b403784 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -14,3 +14,4 @@ src/widgetentry.c src/widgetlabel.c src/widgetspin.c src/widgettextview.c +ui/gtkformdecoder.c diff --git a/po/it.po b/po/it.po index 8810359..fb15965 100644 --- 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 \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 \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." diff --git a/src/form.c b/src/form.c index e6b2e3d..13a6acd 100644 --- a/src/form.c +++ b/src/form.c @@ -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 { diff --git a/ui/gtkformdecoder.c b/ui/gtkformdecoder.c index 7c7f605..079326b 100644 --- a/ui/gtkformdecoder.c +++ b/ui/gtkformdecoder.c @@ -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); diff --git a/ui/gtkformwidgetdecoder.c b/ui/gtkformwidgetdecoder.c index 7089fa0..50cf9b3 100644 --- a/ui/gtkformwidgetdecoder.c +++ b/ui/gtkformwidgetdecoder.c @@ -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; }