]> saetta.ns0.it Git - libgtkform/commitdiff
Added property show-btn-browse.
authorAndrea Zagli <azagli@libero.it>
Sat, 18 Jun 2011 16:42:29 +0000 (18:42 +0200)
committerAndrea Zagli <azagli@libero.it>
Sat, 18 Jun 2011 16:42:29 +0000 (18:42 +0200)
Completed Glade catalogue.
Updated italian translation.

po/it.po
ui/glade/gtkformui.xml
ui/gtkformdecoder.c

index 83486840ebaac3ee13d3ad652890fa5d8896819a..881035983a9acecc7d3a82a6477100c482c335b6 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-04-30 09:58+0200\n"
-"PO-Revision-Date: 2011-04-30 11:52+0200\n"
+"POT-Creation-Date: 2011-06-18 18:38+0200\n"
+"PO-Revision-Date: 2011-06-18 19:52+0200\n"
 "Last-Translator: Andrea Zagli <azagli@libero.it>\n"
 "Language-Team: Italian <>\n"
 "Language: it\n"
@@ -28,102 +28,116 @@ msgstr "GtkFormField non ha un nome di campo."
 msgid "GtkFormFieldDateTimeType not supported: %d."
 msgstr "GtkFormFieldDateTimeType non supportato: %d."
 
-#: ../src/form.c:191
-msgid "Modules not supported from this operating system."
-msgstr "Moduli non supportati in questo sistema operativo."
+#: ../src/form.c:203
+msgid "Modules not supported by this operating system."
+msgstr "Moduli non supportati da questo sistema operativo."
 
-#: ../src/form.c:264
+#: ../src/form.c:276
 #, c-format
 msgid "Error on writing on log file: %s"
 msgstr "Errore nella scrittura sul file di registro: %s"
 
-#: ../src/form.c:298
+#: ../src/form.c:310
 #, c-format
 msgid "Error on opening log file: %s."
 msgstr "Errore durante l'apertura del file di registro: %s."
 
-#: ../src/form.c:520
+#: ../src/form.c:573
 #, c-format
 msgid "Error on loading GtkBuilder file: %s\n"
 msgstr "Errore durante il caricamento del file GtkBuilder: %s\n"
 
-#: ../src/form.c:592
+#: ../src/form.c:643
 #, c-format
 msgid "Unknown type «%s»."
 msgstr "Tipo «%s» sconosciuto."
 
-#: ../src/form.c:623
+#: ../src/form.c:675
 #, c-format
 msgid "Label «%s» not found."
 msgstr "Etichetta «%s» non trovata."
 
-#: ../src/form.c:831
+#: ../src/form.c:883
 #, c-format
 msgid "Field of type «%s» not found."
 msgstr "Campo di tipo «%s» non trovato."
 
-#: ../src/form.c:840
+#: ../src/form.c:909
 #, c-format
 msgid "Widget of type «%s» not found."
 msgstr "Widget di tipo «%s» non trovato."
 
 #. TO DO
-#: ../src/form.c:854
+#: ../src/form.c:927
 msgid "The file is not a valid gtkform definition file."
 msgstr "Il file non è un file di definizione di gtkform valido."
 
-#: ../src/form.c:1358 ../src/form.c:1643 ../src/form.c:1719 ../src/form.c:1760
+#: ../src/form.c:1431 ../src/form.c:1716 ../src/form.c:1792 ../src/form.c:1833
 #, c-format
 msgid "Object «%s» not found."
 msgstr "Oggetto «%s» non trovato."
 
-#: ../src/form.c:1468 ../src/form.c:1494
+#: ../src/form.c:1541 ../src/form.c:1567
 msgid " is obligatory"
 msgstr " è obbligatorio"
 
-#: ../src/form.c:1468
+#: ../src/form.c:1541
 msgid " isn't valid"
 msgstr " non è valido"
 
-#: ../src/form.c:1541
+#: ../src/form.c:1614
 #, c-format
 msgid "Field «%s» is changed."
 msgstr "Il campo «%s» è cambiato."
 
-#: ../src/form.c:2461
+#: ../src/form.c:2721
 #, c-format
 msgid "The field «%s»%s."
 msgstr "Il campo «%s»%s."
 
-#: ../src/form.c:2496
+#: ../src/form.c:2779
+#, c-format
+msgid "Loaded %s."
+msgstr "Caricato «%s»."
+
+#: ../src/form.c:2783
+#, c-format
+msgid "Unable to load %s: %s."
+msgstr "Impossibile caricare %s: %s."
+
+#: ../src/form.c:2791
 #, c-format
 msgid "Unable to open modules dir: %s."
 msgstr "Impossibile aprire la directory dei moduli: %s."
 
-#: ../src/widget.c:183
+#: ../src/form.c:2791
+msgid "no details"
+msgstr "nessun dettaglio"
+
+#: ../src/widget.c:181
 #, c-format
 msgid "Widget «%s» not found."
 msgstr "Widget «%s» non trovato."
 
-#: ../src/widget.c:322
+#: ../src/widget.c:330
 #, c-format
 msgid ""
 "Error on parsing sql string: %s\n"
-"%s"
+"%s."
 msgstr ""
 "Errore nell'analisi della stringa sql: %s\n"
-"%s"
+"%s."
 
-#: ../src/widget.c:342
+#: ../src/widget.c:350
 #, c-format
-msgid "Error on setting holder's value: %s"
-msgstr "Errore nell'impostazione del valore dell'holder: %s"
+msgid "Error on setting holder's value: %s."
+msgstr "Errore nell'impostazione del valore dell'holder: %s."
 
-#: ../src/widget.c:357
+#: ../src/widget.c:365
 #, c-format
-msgid "Error on executing GtkFormWidgetOnChangeOp: %s"
-msgstr "Errore nell'esecuzione di GtkFormWidgetOnChangeOp: %s"
+msgid "Error on executing GtkFormWidgetOnChangeOp: %s."
+msgstr "Errore nell'esecuzione di GtkFormWidgetOnChangeOp: %s."
 
-#: ../src/widget.c:373
+#: ../src/widget.c:383
 msgid "No GdaEx object inside GtkFormWidget."
 msgstr "Nessun oggetto GdaEx all'interno di GtkFormWidget."
index 9ef08299a4a8b07d8e64589ff55b75f813784b54..7dc1f93741c11468cb18edcb896f9c4d805ceda5 100644 (file)
@@ -7,6 +7,8 @@
                                <property name="GdaEx object" id="gdaex" visible="False" />
                                <property name="Sql statement" id="sql" />
                                <property name="Show clean icon" id="show-btn-clean" />
+                               <property name="Show open button" id="show-btn-open" />
+                               <property name="Show browse button" id="show-btn-browse" />
                        </properties>
                </glade-widget-class>
        </glade-widget-classes>
index d8d7b7fb4c405fe6ccaa316cfdaebcf391cf6350..7c7f6052d1e2c432a45f8778a6bc0cd2d4deae45 100644 (file)
@@ -37,7 +37,8 @@ enum
        PROP_GDAEX,
        PROP_SQL,
        PROP_SHOW_CLEAN,
-       PROP_SHOW_OPEN
+       PROP_SHOW_OPEN,
+       PROP_SHOW_BROWSE
 };
 
 static void gtk_form_decoder_class_init (GtkFormDecoderClass *klass);
@@ -136,6 +137,13 @@ gtk_form_decoder_class_init (GtkFormDecoderClass *klass)
                                                               FALSE,
                                                               G_PARAM_READWRITE));
 
+       g_object_class_install_property (object_class, PROP_SHOW_BROWSE,
+                                        g_param_spec_boolean ("show-btn-browse",
+                                                              "Show browse button",
+                                                              "Whether to show the browse button",
+                                                              TRUE,
+                                                              G_PARAM_READWRITE));
+
        /**
         * GtkFormDecoder::btn_clean_clicked:
         * @gtk_form_decoder:
@@ -384,6 +392,14 @@ gtk_form_decoder_show_btn_open (GtkFormDecoder *decoder, gboolean visible)
        gtk_widget_set_visible (priv->btn_open, visible);
 }
 
+static void
+gtk_form_decoder_show_btn_browse (GtkFormDecoder *decoder, gboolean visible)
+{
+       GtkFormDecoderPrivate *priv = GTK_FORM_DECODER_GET_PRIVATE (decoder);
+
+       gtk_widget_set_visible (priv->btn_browse, visible);
+}
+
 /* CALLBACKS */
 static void
 gtk_form_decoder_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec)
@@ -421,6 +437,10 @@ gtk_form_decoder_set_property (GObject *object, guint property_id, const GValue
                                gtk_form_decoder_show_btn_open (decoder, g_value_get_boolean (value));
                                break;
 
+                       case PROP_SHOW_BROWSE:
+                               gtk_form_decoder_show_btn_browse (decoder, g_value_get_boolean (value));
+                               break;
+
                        default:
                                G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
                                break;
@@ -451,6 +471,10 @@ gtk_form_decoder_get_property (GObject *object, guint property_id, GValue *value
                                g_value_set_boolean (value, gtk_widget_get_visible (priv->btn_open));
                                break;
 
+                       case PROP_SHOW_BROWSE:
+                               g_value_set_boolean (value, gtk_widget_get_visible (priv->btn_browse));
+                               break;
+
                        default:
                                G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
                                break;