]> saetta.ns0.it Git - albonline/be/commitdiff
Aggiustamenti.
authorAndrea Zagli <azagli@libero.it>
Sat, 23 Feb 2013 11:12:00 +0000 (12:12 +0100)
committerAndrea Zagli <azagli@libero.it>
Sat, 23 Feb 2013 11:12:00 +0000 (12:12 +0100)
data/messi/form/atto.form
data/messi/gui/messi.gui
src/atto.c

index 59889ec955f5fe2e64a02afc672bce83ad0c4433..50fe20f525550140232917779c6011cdd77f1f8a 100644 (file)
                </field>
        </widget>
 
+       <widget type="decoder" name="gtkformdecoder2" label="label16">
+               <decoder>
+                       <sql>
+                               SELECT nome FROM uffici WHERE id = ##key0::gint
+                       </sql>
+               </decoder>
+               <field type="integer" name="id_uffici">
+               </field>
+       </widget>
+
        <widget type="entry" name="entry3" label="label7">
                <field type="datetime" name="ricezione_data">
                        <datetime-type>date</datetime-type>
                        <display-format>%d/%m/%Y</display-format>
-                       <min-value>now</min-value>
                </field>
        </widget>
 
index 53e0e0abd64d6334348b3abbef78ab4437d5b419..ccc042e95f7a39bae6b46a3926259ed06824d722 100644 (file)
@@ -95,7 +95,7 @@
           <object class="GtkLabel" id="label2">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
-            <property name="label" translatable="yes">&lt;b&gt;Atti&lt;/b&gt;</property>
+            <property name="label" translatable="yes">&lt;b&gt;Atti - Albo Pretorio&lt;/b&gt;</property>
             <property name="use_markup">True</property>
           </object>
           <packing>
             </child>
             <child>
               <object class="GtkButton" id="button9">
-                <property name="label">gtk-undo</property>
+                <property name="label">gtk-cancel</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                       <object class="GtkMenuItem" id="mnu_tabelle_tipi_atti">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
-                        <property name="label" translatable="yes">Ti_pi atti</property>
+                        <property name="label" translatable="yes">Ti_pi atto</property>
                         <property name="use_underline">True</property>
                         <signal name="activate" handler="on_mnu_tabelle_tipi_atto_activate" swapped="no"/>
                       </object>
index 75dfbf38cfb30bb85167b9a1e990e21cd359201e..9e32e50b5e6eddaf2e7d512f3bef8bfb32712372 100644 (file)
@@ -514,8 +514,6 @@ atto_on_ufficio_selezionato (gpointer instance, guint id, gpointer user_data)
 
        gtk_form_widget_set_value_stringify (gtk_form_get_form_widget_from_name (priv->form, "gtkformdecoder2"),
                                             g_strdup_printf ("%d", id));
-       gtk_form_widget_set_value_stringify (gtk_form_get_form_widget_from_name (priv->form, "gtkformdecoder3"),
-                                            "0");
 }
 
 static gboolean
@@ -546,7 +544,7 @@ atto_on_key_release_event (GtkWidget   *widget,
                {
                        AttoPrivate *priv = ATTO_GET_PRIVATE ((Atto *)user_data);
 
-                       gtk_button_clicked (GTK_BUTTON (gtk_builder_get_object (priv->commons->gtkbuilder, "button18")));
+                       gtk_button_clicked (GTK_BUTTON (gtk_builder_get_object (priv->commons->gtkbuilder, "button1")));
                        return TRUE;
                }
        return FALSE;
@@ -698,7 +696,7 @@ atto_on_btn_allegato_apri_clicked (GtkButton *button,
                                        filename_orig = g_path_get_basename (gdaex_data_model_get_field_value_stringify_at (dm, 0, "percorso"));
 
                                        error = NULL;
-                                       fin = g_file_open_tmp (g_strdup_printf ("opengov-XXXXXX-%s",
+                                       fin = g_file_open_tmp (g_strdup_printf ("messi-XXXXXX-%s",
                                                                                filename_orig),
                                                               &filename_tmp, &error);
                                        if (fin < 1 || error != NULL)