]> saetta.ns0.it Git - solipa/organigramma/commitdiff
Aggiunti i pulsanti salva e chiudi (closes #529).
authorAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Thu, 23 May 2013 08:53:38 +0000 (10:53 +0200)
committerAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Thu, 23 May 2013 08:53:38 +0000 (10:53 +0200)
Aggiustamenti vari.

34 files changed:
.cproject
.project
data/organigramma/form/nodo.form
data/organigramma/form/persona_incarico.form
data/organigramma/form/persona_nodo.form
data/organigramma/form/persona_nodo_recapito.form
data/organigramma/form/persona_recapito.form
data/organigramma/form/persona_ufficio.form
data/organigramma/form/persona_ufficio_recapito.form
data/organigramma/form/posizione_economica.form
data/organigramma/form/struttura_indirizzo.form
data/organigramma/gui/organigramma.gui
src/nodo.c
src/persona.c
src/personaincarico.c
src/personanodo.c
src/personanodorecapito.c
src/personarecapito.c
src/personaufficio.c
src/personaufficiorecapito.c
src/posizioneeconomica.c
src/profiloprofessionale.c
src/struttura.c
src/strutturaindirizzo.c
src/tiponodo.c
src/tipoprestazione.c
src/tiporapportolavoro.c
src/tiporecapito.c
src/titolo.c
src/ufficio.c
src/ufficionodo.c
src/ufficioorario.c
src/ufficiorecapito.c
src/ufficiostanza.c

index f8f50dfa221bbb6f3d46f01c4ab59a2220e31a87..d6c540384a50416f3ebacee39a201717e723fb67 100644 (file)
--- a/.cproject
+++ b/.cproject
@@ -16,7 +16,7 @@
                                </extensions>
                        </storageModule>
                        <storageModule moduleId="cdtBuildSystem" version="4.0.0">
-                               <configuration buildProperties="" description="" id="org.eclipse.linuxtools.cdt.autotools.core.toolChain.590174213" name="Build (GNU)" parent="org.eclipse.cdt.build.core.emptycfg">
+                               <configuration artifactName="organigramma" buildProperties="" description="" id="org.eclipse.linuxtools.cdt.autotools.core.toolChain.590174213" name="Build (GNU)" parent="org.eclipse.cdt.build.core.emptycfg">
                                        <folderInfo id="org.eclipse.linuxtools.cdt.autotools.core.toolChain.590174213.184868573" name="/" resourcePath="">
                                                <toolChain id="org.eclipse.linuxtools.cdt.autotools.core.toolChain.1178137107" name="org.eclipse.linuxtools.cdt.autotools.core.toolChain" superClass="org.eclipse.linuxtools.cdt.autotools.core.toolChain">
                                                        <targetPlatform id="org.eclipse.linuxtools.cdt.autotools.core.toolchain.targetPlatform.1521462816" isAbstract="false" name="GNU Autotools Target Platform" superClass="org.eclipse.linuxtools.cdt.autotools.core.toolchain.targetPlatform"/>
index 59ab419efdeca84c3caac0b453115a33c12ea026..e6582c54d3b773ac070524f71ae91ee0031c7f0d 100644 (file)
--- a/.project
+++ b/.project
@@ -69,7 +69,7 @@
        </natures>
        <filteredResources>
                <filter>
-                       <id>1369207836344</id>
+                       <id>1369291081801</id>
                        <name></name>
                        <type>30</type>
                        <matcher>
@@ -78,7 +78,7 @@
                        </matcher>
                </filter>
                <filter>
-                       <id>1369207836348</id>
+                       <id>1369291081809</id>
                        <name></name>
                        <type>22</type>
                        <matcher>
@@ -87,7 +87,7 @@
                        </matcher>
                </filter>
                <filter>
-                       <id>1369207836352</id>
+                       <id>1369291081813</id>
                        <name></name>
                        <type>22</type>
                        <matcher>
@@ -96,7 +96,7 @@
                        </matcher>
                </filter>
                <filter>
-                       <id>1369207836377</id>
+                       <id>1369291081817</id>
                        <name></name>
                        <type>22</type>
                        <matcher>
                        </matcher>
                </filter>
                <filter>
-                       <id>1369207836379</id>
+                       <id>1369291081822</id>
                        <name></name>
                        <type>22</type>
                        <matcher>
                        </matcher>
                </filter>
                <filter>
-                       <id>1369207836382</id>
+                       <id>1369291081831</id>
                        <name></name>
                        <type>22</type>
                        <matcher>
                        </matcher>
                </filter>
                <filter>
-                       <id>1369207836529</id>
+                       <id>1369291081835</id>
                        <name></name>
                        <type>22</type>
                        <matcher>
                        </matcher>
                </filter>
                <filter>
-                       <id>1369207836532</id>
+                       <id>1369291081839</id>
                        <name></name>
                        <type>22</type>
                        <matcher>
                        </matcher>
                </filter>
                <filter>
-                       <id>1369207836534</id>
+                       <id>1369291081845</id>
                        <name></name>
                        <type>22</type>
                        <matcher>
                        </matcher>
                </filter>
                <filter>
-                       <id>1369207836537</id>
+                       <id>1369291081850</id>
                        <name></name>
                        <type>22</type>
                        <matcher>
                        </matcher>
                </filter>
                <filter>
-                       <id>1369207836539</id>
+                       <id>1369291081853</id>
                        <name></name>
                        <type>22</type>
                        <matcher>
                        </matcher>
                </filter>
                <filter>
-                       <id>1369207836541</id>
+                       <id>1369291081857</id>
                        <name></name>
                        <type>22</type>
                        <matcher>
                        </matcher>
                </filter>
                <filter>
-                       <id>1369207836544</id>
+                       <id>1369291081860</id>
                        <name></name>
                        <type>22</type>
                        <matcher>
                        </matcher>
                </filter>
                <filter>
-                       <id>1369207836547</id>
+                       <id>1369291081864</id>
                        <name></name>
                        <type>22</type>
                        <matcher>
                        </matcher>
                </filter>
                <filter>
-                       <id>1369207836550</id>
+                       <id>1369291081868</id>
                        <name></name>
                        <type>22</type>
                        <matcher>
                        </matcher>
                </filter>
                <filter>
-                       <id>1369207836552</id>
+                       <id>1369291081871</id>
                        <name></name>
                        <type>22</type>
                        <matcher>
                        </matcher>
                </filter>
                <filter>
-                       <id>1369207836555</id>
+                       <id>1369291081874</id>
                        <name></name>
                        <type>22</type>
                        <matcher>
                        </matcher>
                </filter>
                <filter>
-                       <id>1369207836626</id>
+                       <id>1369291081876</id>
                        <name></name>
-                       <type>30</type>
+                       <type>22</type>
                        <matcher>
                                <id>org.eclipse.ui.ide.multiFilter</id>
                                <arguments>1.0-name-matches-false-false-*.lo</arguments>
                        </matcher>
                </filter>
                <filter>
-                       <id>1369207836629</id>
+                       <id>1369291081879</id>
                        <name></name>
-                       <type>30</type>
+                       <type>22</type>
                        <matcher>
                                <id>org.eclipse.ui.ide.multiFilter</id>
                                <arguments>1.0-name-matches-false-false-*.la</arguments>
                        </matcher>
                </filter>
                <filter>
-                       <id>1369207836632</id>
+                       <id>1369291081882</id>
                        <name></name>
-                       <type>30</type>
+                       <type>22</type>
                        <matcher>
                                <id>org.eclipse.ui.ide.multiFilter</id>
                                <arguments>1.0-name-matches-false-false-liborganigramma.pc</arguments>
                        </matcher>
                </filter>
                <filter>
-                       <id>1369207836634</id>
+                       <id>1369291081884</id>
                        <name></name>
-                       <type>30</type>
+                       <type>22</type>
                        <matcher>
                                <id>org.eclipse.ui.ide.multiFilter</id>
                                <arguments>1.0-name-matches-false-false-*~</arguments>
                        </matcher>
                </filter>
                <filter>
-                       <id>1369207836637</id>
+                       <id>1369291081887</id>
                        <name></name>
                        <type>6</type>
                        <matcher>
                        </matcher>
                </filter>
                <filter>
-                       <id>1369207836640</id>
+                       <id>1369291081890</id>
                        <name></name>
                        <type>6</type>
                        <matcher>
                        </matcher>
                </filter>
                <filter>
-                       <id>1369207836643</id>
+                       <id>1369291081894</id>
                        <name></name>
                        <type>22</type>
                        <matcher>
                                <arguments>1.0-name-matches-false-false-make_installer.sh</arguments>
                        </matcher>
                </filter>
+               <filter>
+                       <id>1369291081897</id>
+                       <name></name>
+                       <type>22</type>
+                       <matcher>
+                               <id>org.eclipse.ui.ide.multiFilter</id>
+                               <arguments>1.0-name-matches-false-false-*.dll</arguments>
+                       </matcher>
+               </filter>
+               <filter>
+                       <id>1369291081900</id>
+                       <name></name>
+                       <type>22</type>
+                       <matcher>
+                               <id>org.eclipse.ui.ide.multiFilter</id>
+                               <arguments>1.0-name-matches-false-false-*.a</arguments>
+                       </matcher>
+               </filter>
        </filteredResources>
 </projectDescription>
index 728f811ab58bb2eccc87790eb8557cd9e4fdf9ee..94afce642cffb480e8f97afa90f24871d1c76fe0 100644 (file)
@@ -39,7 +39,9 @@
        </widget>
 
        <widget type="entry" name="entry1" label="label2">
-               <field type="text" name="nome" />
+               <field type="text" name="nome">
+                       <obligatory>t</obligatory>
+               </field>
        </widget>
 
        <widget type="textview" name="textview1" label="label3">
index 91042c9b91f039bdd2c31418f3047b2208eec0d1..1036218e10bc6cb82761dac5c9b7f5896a72ee56 100644 (file)
@@ -60,6 +60,7 @@
                <field type="datetime" name="da_data">
                        <datetime-type>date</datetime-type>
                        <display-format>%d/%m/%Y</display-format>
+                       <obligatory>t</obligatory>
                </field>
        </widget>
 
@@ -71,7 +72,9 @@
        </widget>
 
        <widget type="textview" name="textview15" label="label144">
-               <field type="text" name="descrizione" />
+               <field type="text" name="descrizione">
+                       <obligatory>t</obligatory>
+               </field>
        </widget>
 
        <widget type="textview" name="textview14" label="label128">
index 94cba91f4a92470cd1dc0cc16d37400bedbefc06..227486b3da3299c53bcf9cea27e643a1f0cb7aed 100644 (file)
@@ -30,6 +30,7 @@
                        </sql>
                </on-change>
                <field type="integer" name="id_nodi">
+                       <obligatory>t</obligatory>
                </field>
        </widget>
 
@@ -37,6 +38,7 @@
                <field type="datetime" name="da_data">
                        <datetime-type>date</datetime-type>
                        <display-format>%d/%m/%Y</display-format>
+                       <obligatory>t</obligatory>
                </field>
        </widget>
 
index 1d68676fd6e5e44c7b8410b514d5f2388bd92a81..146e86cd392f0593b655dcd6f1fd6880a1885271 100644 (file)
                        SELECT id, nome FROM tipi_recapito WHERE status &lt;&gt; 'E' ORDER BY nome
                </sql>
                <field type="integer" name="id_tipi_recapito">
+                       <obligatory>t</obligatory>
                </field>
        </widget>
 
        <widget type="entry" name="entry33" label="label124">
                <field type="text" name="recapito">
+                       <obligatory>t</obligatory>
                </field>
        </widget>
 
index b6d70b405e0776b41fd76ed2e1fe49bc4c774e96..8bb7d19c8a6af8862665495a97f0ba0538e97034 100644 (file)
                        SELECT id, nome FROM tipi_recapito WHERE status &lt;&gt; 'E' ORDER BY nome
                </sql>
                <field type="integer" name="id_tipi_recapito">
+                       <obligatory>t</obligatory>
                </field>
        </widget>
 
        <widget type="entry" name="entry25" label="label105">
                <field type="text" name="recapito">
+                       <obligatory>t</obligatory>
                </field>
        </widget>
 
index 410ed4fc76d31969da31fbefa33d51698110a97e..b83de62313b4f77100b5004bee5cc0488a6f2f27 100644 (file)
@@ -30,6 +30,7 @@
                        </sql>
                </on-change>
                <field type="integer" name="id_uffici">
+                       <obligatory>t</obligatory>
                </field>
        </widget>
 
index f33b674efacacbf3571e319bcf63a62fc59ff357..9e1da93f371f999147769005e12b76f6f23ad1d7 100644 (file)
                        SELECT id, nome FROM tipi_recapito WHERE status &lt;&gt; 'E' ORDER BY nome
                </sql>
                <field type="integer" name="id_tipi_recapito">
+                       <obligatory>t</obligatory>
                </field>
        </widget>
 
        <widget type="entry" name="entry24" label="label98">
                <field type="text" name="recapito">
+                       <obligatory>t</obligatory>
                </field>
        </widget>
 
index 879c63f876731130a15a74ca6d45fe35c804476a..160dee3088497d48472c63d0e25e0e86b945228a 100644 (file)
@@ -11,7 +11,9 @@
        </widget>
 
        <widget type="entry" name="entry39" label="label151">
-               <field type="text" name="nome" />
+               <field type="text" name="nome">
+                       <obligatory>t</obligatory>
+               </field>
        </widget>
 
 </gtkform>
index f57f0fee005e1a488a562377d99fa8510172d10c..e63803e7e9f3106c3c777df0868cf329b6844ca8 100644 (file)
@@ -33,6 +33,7 @@
                        </sql>
                </on-change>
                <field type="integer" name="id_vie">
+                       <obligatory>t</obligatory>
                </field>
        </widget>
 
index bbba4b368af600059a9a713bd0996b86ecf908bd..ccf416f0b3fa5338b8008973d841c9b58fe68774 100644 (file)
             <property name="can_focus">False</property>
             <child>
               <object class="GtkMenuItem" id="menuitem1">
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <property name="label" translatable="yes">_File</property>
                     <child>
                       <object class="GtkImageMenuItem" id="imagemenuitem5">
                         <property name="label">gtk-quit</property>
-                        <property name="use_action_appearance">False</property>
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="use_underline">True</property>
             </child>
             <child>
               <object class="GtkMenuItem" id="menuitem2">
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <property name="label" translatable="yes">_Visualizza</property>
                     <property name="can_focus">False</property>
                     <child>
                       <object class="GtkMenuItem" id="menuitem3">
-                        <property name="use_action_appearance">False</property>
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="label" translatable="yes">_Organigramma</property>
                     </child>
                     <child>
                       <object class="GtkMenuItem" id="menuitem9">
-                        <property name="use_action_appearance">False</property>
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="label" translatable="yes">_Strutture</property>
                     </child>
                     <child>
                       <object class="GtkMenuItem" id="menuitem8">
-                        <property name="use_action_appearance">False</property>
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="label" translatable="yes">_Uffici</property>
                     </child>
                     <child>
                       <object class="GtkMenuItem" id="menuitem11">
-                        <property name="use_action_appearance">False</property>
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="label" translatable="yes">_Persone</property>
             </child>
             <child>
               <object class="GtkMenuItem" id="menuitem5">
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <property name="label" translatable="yes">_Tabelle</property>
                     <property name="can_focus">False</property>
                     <child>
                       <object class="GtkMenuItem" id="menuitem6">
-                        <property name="use_action_appearance">False</property>
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="label" translatable="yes">Tipi _nodo</property>
                     </child>
                     <child>
                       <object class="GtkMenuItem" id="menuitem7">
-                        <property name="use_action_appearance">False</property>
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="label" translatable="yes">Tipi _recapito</property>
                     </child>
                     <child>
                       <object class="GtkMenuItem" id="menuitem10">
-                        <property name="use_action_appearance">False</property>
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="label" translatable="yes">_Titoli</property>
                     </child>
                     <child>
                       <object class="GtkMenuItem" id="menuitem12">
-                        <property name="use_action_appearance">False</property>
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="label" translatable="yes">Tipi rapporto di _lavoro</property>
                     </child>
                     <child>
                       <object class="GtkMenuItem" id="menuitem13">
-                        <property name="use_action_appearance">False</property>
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="label" translatable="yes">_Posizioni economiche</property>
                     </child>
                     <child>
                       <object class="GtkMenuItem" id="menuitem14">
-                        <property name="use_action_appearance">False</property>
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="label" translatable="yes">Tipi pr_estazione</property>
                     </child>
                     <child>
                       <object class="GtkMenuItem" id="menuitem15">
-                        <property name="use_action_appearance">False</property>
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="label" translatable="yes">Pro_fili professionali</property>
             </child>
             <child>
               <object class="GtkMenuItem" id="menuitem4">
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <property name="label" translatable="yes">A_iuto</property>
                     <child>
                       <object class="GtkImageMenuItem" id="imagemenuitem10">
                         <property name="label">gtk-about</property>
-                        <property name="use_action_appearance">False</property>
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="use_underline">True</property>
             <child>
               <object class="GtkButton" id="button1">
                 <property name="label">gtk-new</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button2">
                 <property name="label">gtk-edit</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button3">
                 <property name="label">gtk-delete</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button14">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button15">
                 <property name="label">gtk-ok</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <child>
                   <object class="GtkButton" id="button6">
                     <property name="label" translatable="yes">...</property>
-                    <property name="use_action_appearance">False</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button4">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button5">
                 <property name="label">gtk-save</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <property name="position">1</property>
               </packing>
             </child>
+            <child>
+              <object class="GtkButton" id="button152">
+                <property name="label" translatable="yes">Salva e _chiudi</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_underline">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
           </object>
           <packing>
             <property name="expand">False</property>
                                 <child>
                                   <object class="GtkButton" id="button79">
                                     <property name="label">gtk-new</property>
-                                    <property name="use_action_appearance">False</property>
                                     <property name="visible">True</property>
                                     <property name="can_focus">True</property>
                                     <property name="receives_default">True</property>
                                 <child>
                                   <object class="GtkButton" id="button80">
                                     <property name="label">gtk-edit</property>
-                                    <property name="use_action_appearance">False</property>
                                     <property name="visible">True</property>
                                     <property name="can_focus">True</property>
                                     <property name="receives_default">True</property>
                                 <child>
                                   <object class="GtkButton" id="button81">
                                     <property name="label">gtk-delete</property>
-                                    <property name="use_action_appearance">False</property>
                                     <property name="visible">True</property>
                                     <property name="can_focus">True</property>
                                     <property name="receives_default">True</property>
                                     <child>
                                       <object class="GtkButton" id="button70">
                                         <property name="label">gtk-new</property>
-                                        <property name="use_action_appearance">False</property>
                                         <property name="visible">True</property>
                                         <property name="can_focus">True</property>
                                         <property name="receives_default">True</property>
                                     <child>
                                       <object class="GtkButton" id="button71">
                                         <property name="label">gtk-edit</property>
-                                        <property name="use_action_appearance">False</property>
                                         <property name="visible">True</property>
                                         <property name="can_focus">True</property>
                                         <property name="receives_default">True</property>
                                     <child>
                                       <object class="GtkButton" id="button72">
                                         <property name="label">gtk-delete</property>
-                                        <property name="use_action_appearance">False</property>
                                         <property name="visible">True</property>
                                         <property name="can_focus">True</property>
                                         <property name="receives_default">True</property>
                                     <child>
                                       <object class="GtkButton" id="button73">
                                         <property name="label">gtk-new</property>
-                                        <property name="use_action_appearance">False</property>
                                         <property name="visible">True</property>
                                         <property name="can_focus">True</property>
                                         <property name="receives_default">True</property>
                                     <child>
                                       <object class="GtkButton" id="button74">
                                         <property name="label">gtk-edit</property>
-                                        <property name="use_action_appearance">False</property>
                                         <property name="visible">True</property>
                                         <property name="can_focus">True</property>
                                         <property name="receives_default">True</property>
                                     <child>
                                       <object class="GtkButton" id="button75">
                                         <property name="label">gtk-delete</property>
-                                        <property name="use_action_appearance">False</property>
                                         <property name="visible">True</property>
                                         <property name="can_focus">True</property>
                                         <property name="receives_default">True</property>
                                     <child>
                                       <object class="GtkButton" id="button62">
                                         <property name="label">gtk-new</property>
-                                        <property name="use_action_appearance">False</property>
                                         <property name="visible">True</property>
                                         <property name="can_focus">True</property>
                                         <property name="receives_default">True</property>
                                     <child>
                                       <object class="GtkButton" id="button63">
                                         <property name="label">gtk-edit</property>
-                                        <property name="use_action_appearance">False</property>
                                         <property name="visible">True</property>
                                         <property name="can_focus">True</property>
                                         <property name="receives_default">True</property>
                                     <child>
                                       <object class="GtkButton" id="button64">
                                         <property name="label">gtk-delete</property>
-                                        <property name="use_action_appearance">False</property>
                                         <property name="visible">True</property>
                                         <property name="can_focus">True</property>
                                         <property name="receives_default">True</property>
                                     <child>
                                       <object class="GtkButton" id="button67">
                                         <property name="label">gtk-new</property>
-                                        <property name="use_action_appearance">False</property>
                                         <property name="visible">True</property>
                                         <property name="can_focus">True</property>
                                         <property name="receives_default">True</property>
                                     <child>
                                       <object class="GtkButton" id="button68">
                                         <property name="label">gtk-edit</property>
-                                        <property name="use_action_appearance">False</property>
                                         <property name="visible">True</property>
                                         <property name="can_focus">True</property>
                                         <property name="receives_default">True</property>
                                     <child>
                                       <object class="GtkButton" id="button69">
                                         <property name="label">gtk-delete</property>
-                                        <property name="use_action_appearance">False</property>
                                         <property name="visible">True</property>
                                         <property name="can_focus">True</property>
                                         <property name="receives_default">True</property>
                                 <child>
                                   <object class="GtkButton" id="button76">
                                     <property name="label">gtk-new</property>
-                                    <property name="use_action_appearance">False</property>
                                     <property name="visible">True</property>
                                     <property name="can_focus">True</property>
                                     <property name="receives_default">True</property>
                                 <child>
                                   <object class="GtkButton" id="button77">
                                     <property name="label">gtk-edit</property>
-                                    <property name="use_action_appearance">False</property>
                                     <property name="visible">True</property>
                                     <property name="can_focus">True</property>
                                     <property name="receives_default">True</property>
                                 <child>
                                   <object class="GtkButton" id="button78">
                                     <property name="label">gtk-delete</property>
-                                    <property name="use_action_appearance">False</property>
                                     <property name="visible">True</property>
                                     <property name="can_focus">True</property>
                                     <property name="receives_default">True</property>
                             <child>
                               <object class="GtkButton" id="button89">
                                 <property name="label" translatable="yes">...</property>
-                                <property name="use_action_appearance">False</property>
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button65">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button66">
                 <property name="label">gtk-save</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <property name="position">1</property>
               </packing>
             </child>
+            <child>
+              <object class="GtkButton" id="button153">
+                <property name="label" translatable="yes">Salva e _chiudi</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_underline">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
           </object>
           <packing>
             <property name="expand">False</property>
             <child>
               <object class="GtkButton" id="button98">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button99">
                 <property name="label">gtk-save</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <property name="position">1</property>
               </packing>
             </child>
+            <child>
+              <object class="GtkButton" id="button158">
+                <property name="label" translatable="yes">Salva e _chiudi</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_underline">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
           </object>
           <packing>
             <property name="expand">False</property>
                 <child>
                   <object class="GtkButton" id="button90">
                     <property name="label" translatable="yes">...</property>
-                    <property name="use_action_appearance">False</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="receives_default">True</property>
                 <property name="right_attach">2</property>
                 <property name="top_attach">4</property>
                 <property name="bottom_attach">5</property>
+                <property name="y_options">GTK_FILL</property>
               </packing>
             </child>
             <child>
             <child>
               <object class="GtkButton" id="button91">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button92">
                 <property name="label">gtk-save</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <property name="position">1</property>
               </packing>
             </child>
+            <child>
+              <object class="GtkButton" id="button159">
+                <property name="label" translatable="yes">Salva e _chiudi</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_underline">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
           </object>
           <packing>
             <property name="expand">False</property>
             </child>
             <child>
               <object class="GtkCheckButton" id="checkbutton11">
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">False</property>
             <child>
               <object class="GtkButton" id="button93">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button94">
                 <property name="label">gtk-save</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <property name="position">1</property>
               </packing>
             </child>
+            <child>
+              <object class="GtkButton" id="button160">
+                <property name="label" translatable="yes">Salva e _chiudi</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_underline">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
           </object>
           <packing>
             <property name="expand">False</property>
             </child>
             <child>
               <object class="GtkCheckButton" id="checkbutton10">
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">False</property>
             <child>
               <object class="GtkButton" id="button87">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button88">
                 <property name="label">gtk-save</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <property name="position">1</property>
               </packing>
             </child>
+            <child>
+              <object class="GtkButton" id="button163">
+                <property name="label" translatable="yes">Salva e _chiudi</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_underline">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
           </object>
           <packing>
             <property name="expand">False</property>
                 <child>
                   <object class="GtkButton" id="button82">
                     <property name="label" translatable="yes">...</property>
-                    <property name="use_action_appearance">False</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button83">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button84">
                 <property name="label">gtk-save</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <property name="position">1</property>
               </packing>
             </child>
+            <child>
+              <object class="GtkButton" id="button161">
+                <property name="label" translatable="yes">Salva e _chiudi</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_underline">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
           </object>
           <packing>
             <property name="expand">False</property>
             </child>
             <child>
               <object class="GtkCheckButton" id="checkbutton9">
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">False</property>
             <child>
               <object class="GtkButton" id="button85">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button86">
                 <property name="label">gtk-save</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <property name="position">1</property>
               </packing>
             </child>
+            <child>
+              <object class="GtkButton" id="button162">
+                <property name="label" translatable="yes">Salva e _chiudi</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_underline">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
           </object>
           <packing>
             <property name="expand">False</property>
             <child>
               <object class="GtkButton" id="button102">
                 <property name="label">gtk-new</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button103">
                 <property name="label">gtk-edit</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button104">
                 <property name="label">gtk-delete</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button107">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button108">
                 <property name="label">gtk-ok</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button121">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button122">
                 <property name="label">gtk-save</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <property name="position">1</property>
               </packing>
             </child>
+            <child>
+              <object class="GtkButton" id="button147">
+                <property name="label" translatable="yes">Salva e _chiudi</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_underline">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
           </object>
           <packing>
             <property name="expand">False</property>
             <child>
               <object class="GtkButton" id="button116">
                 <property name="label">gtk-new</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button117">
                 <property name="label">gtk-edit</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button118">
                 <property name="label">gtk-delete</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button119">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button120">
                 <property name="label">gtk-ok</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button130">
                 <property name="label">gtk-new</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button131">
                 <property name="label">gtk-edit</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button132">
                 <property name="label">gtk-delete</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button133">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button134">
                 <property name="label">gtk-ok</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button135">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button136">
                 <property name="label">gtk-save</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <property name="position">1</property>
               </packing>
             </child>
+            <child>
+              <object class="GtkButton" id="button148">
+                <property name="label" translatable="yes">Salva e _chiudi</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_underline">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
           </object>
           <packing>
             <property name="expand">False</property>
                             <child>
                               <object class="GtkButton" id="button47">
                                 <property name="label">gtk-new</property>
-                                <property name="use_action_appearance">False</property>
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
                             <child>
                               <object class="GtkButton" id="button50">
                                 <property name="label">gtk-edit</property>
-                                <property name="use_action_appearance">False</property>
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
                             <child>
                               <object class="GtkButton" id="button51">
                                 <property name="label">gtk-delete</property>
-                                <property name="use_action_appearance">False</property>
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button39">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button40">
                 <property name="label">gtk-save</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <property name="position">1</property>
               </packing>
             </child>
+            <child>
+              <object class="GtkButton" id="button149">
+                <property name="label" translatable="yes">Salva e _chiudi</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_underline">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
           </object>
           <packing>
             <property name="expand">False</property>
                 <child>
                   <object class="GtkButton" id="button54">
                     <property name="label" translatable="yes">...</property>
-                    <property name="use_action_appearance">False</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button55">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button56">
                 <property name="label">gtk-save</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <property name="position">1</property>
               </packing>
             </child>
+            <child>
+              <object class="GtkButton" id="button150">
+                <property name="label" translatable="yes">Salva e _chiudi</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_underline">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
           </object>
           <packing>
             <property name="expand">False</property>
             <child>
               <object class="GtkButton" id="button32">
                 <property name="label">gtk-new</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button33">
                 <property name="label">gtk-edit</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button34">
                 <property name="label">gtk-delete</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button35">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button36">
                 <property name="label">gtk-ok</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button7">
                 <property name="label">gtk-new</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button10">
                 <property name="label">gtk-edit</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button11">
                 <property name="label">gtk-delete</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button12">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button13">
                 <property name="label">gtk-ok</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button123">
                 <property name="label">gtk-new</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button124">
                 <property name="label">gtk-edit</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button125">
                 <property name="label">gtk-delete</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button126">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button127">
                 <property name="label">gtk-ok</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button109">
                 <property name="label">gtk-new</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button110">
                 <property name="label">gtk-edit</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button111">
                 <property name="label">gtk-delete</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button112">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button113">
                 <property name="label">gtk-ok</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button16">
                 <property name="label">gtk-new</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button17">
                 <property name="label">gtk-edit</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button18">
                 <property name="label">gtk-delete</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button19">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button20">
                 <property name="label">gtk-ok</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button8">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button9">
                 <property name="label">gtk-save</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <property name="position">1</property>
               </packing>
             </child>
+            <child>
+              <object class="GtkButton" id="button142">
+                <property name="label" translatable="yes">Salva e _chiudi</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_underline">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
           </object>
           <packing>
             <property name="expand">False</property>
             <child>
               <object class="GtkButton" id="button128">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button129">
                 <property name="label">gtk-save</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <property name="position">1</property>
               </packing>
             </child>
+            <child>
+              <object class="GtkButton" id="button143">
+                <property name="label" translatable="yes">Salva e _chiudi</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_underline">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
           </object>
           <packing>
             <property name="expand">False</property>
             <child>
               <object class="GtkButton" id="button114">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button115">
                 <property name="label">gtk-save</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <property name="position">1</property>
               </packing>
             </child>
+            <child>
+              <object class="GtkButton" id="button144">
+                <property name="label" translatable="yes">Salva e _chiudi</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_underline">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
           </object>
           <packing>
             <property name="expand">False</property>
             <child>
               <object class="GtkButton" id="button21">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button22">
                 <property name="label">gtk-save</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <property name="position">1</property>
               </packing>
             </child>
+            <child>
+              <object class="GtkButton" id="button145">
+                <property name="label" translatable="yes">Salva e _chiudi</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_underline">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
           </object>
           <packing>
             <property name="expand">False</property>
             <child>
               <object class="GtkButton" id="button95">
                 <property name="label">gtk-new</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button96">
                 <property name="label">gtk-edit</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button97">
                 <property name="label">gtk-delete</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button100">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button101">
                 <property name="label">gtk-ok</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button105">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button106">
                 <property name="label">gtk-save</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <property name="position">1</property>
               </packing>
             </child>
+            <child>
+              <object class="GtkButton" id="button146">
+                <property name="label" translatable="yes">Salva e _chiudi</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_underline">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
           </object>
           <packing>
             <property name="expand">False</property>
             <child>
               <object class="GtkButton" id="button23">
                 <property name="label">gtk-new</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button24">
                 <property name="label">gtk-edit</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button25">
                 <property name="label">gtk-delete</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button26">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button27">
                 <property name="label">gtk-ok</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <child>
                   <object class="GtkButton" id="button31">
                     <property name="label" translatable="yes">...</property>
-                    <property name="use_action_appearance">False</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="receives_default">True</property>
                             <child>
                               <object class="GtkButton" id="button37">
                                 <property name="label">gtk-new</property>
-                                <property name="use_action_appearance">False</property>
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
                             <child>
                               <object class="GtkButton" id="button38">
                                 <property name="label">gtk-edit</property>
-                                <property name="use_action_appearance">False</property>
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
                             <child>
                               <object class="GtkButton" id="button41">
                                 <property name="label">gtk-delete</property>
-                                <property name="use_action_appearance">False</property>
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
                             <child>
                               <object class="GtkButton" id="button28">
                                 <property name="label">gtk-new</property>
-                                <property name="use_action_appearance">False</property>
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
                             <child>
                               <object class="GtkButton" id="button42">
                                 <property name="label">gtk-edit</property>
-                                <property name="use_action_appearance">False</property>
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
                             <child>
                               <object class="GtkButton" id="button43">
                                 <property name="label">gtk-delete</property>
-                                <property name="use_action_appearance">False</property>
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
                             <child>
                               <object class="GtkButton" id="button59">
                                 <property name="label">gtk-new</property>
-                                <property name="use_action_appearance">False</property>
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
                             <child>
                               <object class="GtkButton" id="button60">
                                 <property name="label">gtk-edit</property>
-                                <property name="use_action_appearance">False</property>
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
                             <child>
                               <object class="GtkButton" id="button61">
                                 <property name="label">gtk-delete</property>
-                                <property name="use_action_appearance">False</property>
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
                             <child>
                               <object class="GtkButton" id="button137">
                                 <property name="label">gtk-new</property>
-                                <property name="use_action_appearance">False</property>
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
                             <child>
                               <object class="GtkButton" id="button140">
                                 <property name="label">gtk-edit</property>
-                                <property name="use_action_appearance">False</property>
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
                             <child>
                               <object class="GtkButton" id="button141">
                                 <property name="label">gtk-delete</property>
-                                <property name="use_action_appearance">False</property>
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button29">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button30">
                 <property name="label">gtk-save</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <property name="position">1</property>
               </packing>
             </child>
+            <child>
+              <object class="GtkButton" id="button151">
+                <property name="label" translatable="yes">Salva e _chiudi</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_underline">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
           </object>
           <packing>
             <property name="expand">False</property>
                 <child>
                   <object class="GtkButton" id="button44">
                     <property name="label" translatable="yes">...</property>
-                    <property name="use_action_appearance">False</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="receives_default">True</property>
                 <property name="right_attach">2</property>
                 <property name="top_attach">2</property>
                 <property name="bottom_attach">3</property>
+                <property name="y_options">GTK_FILL</property>
               </packing>
             </child>
           </object>
             <child>
               <object class="GtkButton" id="button45">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button46">
                 <property name="label">gtk-save</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <property name="position">1</property>
               </packing>
             </child>
+            <child>
+              <object class="GtkButton" id="button154">
+                <property name="label" translatable="yes">Salva e _chiudi</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_underline">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
           </object>
           <packing>
             <property name="expand">False</property>
                 </child>
                 <child>
                   <object class="GtkCheckButton" id="checkbutton1">
-                    <property name="use_action_appearance">False</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="receives_default">False</property>
                 </child>
                 <child>
                   <object class="GtkCheckButton" id="checkbutton2">
-                    <property name="use_action_appearance">False</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="receives_default">False</property>
                 </child>
                 <child>
                   <object class="GtkCheckButton" id="checkbutton3">
-                    <property name="use_action_appearance">False</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="receives_default">False</property>
                 </child>
                 <child>
                   <object class="GtkCheckButton" id="checkbutton4">
-                    <property name="use_action_appearance">False</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="receives_default">False</property>
                 </child>
                 <child>
                   <object class="GtkCheckButton" id="checkbutton5">
-                    <property name="use_action_appearance">False</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="receives_default">False</property>
                 </child>
                 <child>
                   <object class="GtkCheckButton" id="checkbutton6">
-                    <property name="use_action_appearance">False</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="receives_default">False</property>
                 </child>
                 <child>
                   <object class="GtkCheckButton" id="checkbutton7">
-                    <property name="use_action_appearance">False</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="receives_default">False</property>
             <child>
               <object class="GtkButton" id="button57">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button58">
                 <property name="label">gtk-save</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <property name="position">1</property>
               </packing>
             </child>
+            <child>
+              <object class="GtkButton" id="button155">
+                <property name="label" translatable="yes">Salva e _chiudi</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_underline">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
           </object>
           <packing>
             <property name="expand">False</property>
                 <property name="right_attach">2</property>
                 <property name="top_attach">4</property>
                 <property name="bottom_attach">5</property>
+                <property name="y_options">GTK_FILL</property>
               </packing>
             </child>
             <child>
             </child>
             <child>
               <object class="GtkCheckButton" id="checkbutton8">
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">False</property>
             <child>
               <object class="GtkButton" id="button48">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button49">
                 <property name="label">gtk-save</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <property name="position">1</property>
               </packing>
             </child>
+            <child>
+              <object class="GtkButton" id="button156">
+                <property name="label" translatable="yes">Salva e _chiudi</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_underline">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
           </object>
           <packing>
             <property name="expand">False</property>
                 <property name="right_attach">2</property>
                 <property name="top_attach">4</property>
                 <property name="bottom_attach">5</property>
+                <property name="y_options">GTK_FILL</property>
               </packing>
             </child>
             <child>
             <child>
               <object class="GtkButton" id="button138">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button139">
                 <property name="label">gtk-save</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
                 <property name="position">1</property>
               </packing>
             </child>
+            <child>
+              <object class="GtkButton" id="button157">
+                <property name="label" translatable="yes">Salva e _chiudi</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_underline">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
           </object>
           <packing>
             <property name="expand">False</property>
             <child>
               <object class="GtkButton" id="button52">
                 <property name="label">gtk-cancel</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
             <child>
               <object class="GtkButton" id="button53">
                 <property name="label">gtk-ok</property>
-                <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
index e834e9e7f2a702fa04e35cf1f3f101dfb185819f..8bf3736bd32d2f775dbf20da7c2ab326fc413291 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2010-2012 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2013 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  *
  */
 
+#ifdef HAVE_CONFIG_H
+       #include <config.h>
+#endif
+
 #include <libautoz/autoz.h>
 #include <libgtkform/form.h>
 #include <libsolipa/utils.h>
@@ -28,7 +32,7 @@ static void organigramma_nodo_class_init (OrganigrammaNodoClass *klass);
 static void organigramma_nodo_init (OrganigrammaNodo *nodo);
 
 static void organigramma_nodo_carica (OrganigrammaNodo *nodo);
-static void organigramma_nodo_salva (OrganigrammaNodo *nodo);
+static void organigramma_nodo_salva (OrganigrammaNodo *nodo, gboolean chiudi);
 
 static gboolean organigramma_nodo_conferma_chiusura (OrganigrammaNodo *nodo);
 
@@ -58,6 +62,8 @@ static void organigramma_nodo_on_btn_annulla_clicked (GtkButton *button,
                                     gpointer user_data);
 static void organigramma_nodo_on_btn_salva_clicked (GtkButton *button,
                                   gpointer user_data);
+static void organigramma_nodo_on_btn_salvaechiudi_clicked (GtkButton *button,
+                                  gpointer user_data);
 
 #define ORGANIGRAMMA_NODO_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_ORGANIGRAMMA_NODO, OrganigrammaNodoPrivate))
 
@@ -156,17 +162,21 @@ OrganigrammaNodo
                                                      NULL);
 
        g_signal_connect (priv->w,
-                         "delete-event", G_CALLBACK (organigramma_nodo_on_w_organigramma_nodo_delete_event), (gpointer *)a);
+                         "delete-event", G_CALLBACK (organigramma_nodo_on_w_organigramma_nodo_delete_event), (gpointer)a);
 
        g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "entry2"),
-                         "icon-press", G_CALLBACK (organigramma_nodo_on_organigramma_nodo_pulisci), (gpointer *)a);
+                         "icon-press", G_CALLBACK (organigramma_nodo_on_organigramma_nodo_pulisci), (gpointer)a);
        g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button6"),
-                         "clicked", G_CALLBACK (organigramma_nodo_on_btn_organigramma_nodo_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_nodo_on_btn_organigramma_nodo_clicked), (gpointer)a);
 
        g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button4"),
-                         "clicked", G_CALLBACK (organigramma_nodo_on_btn_annulla_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_nodo_on_btn_annulla_clicked), (gpointer)a);
        g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button5"),
-                         "clicked", G_CALLBACK (organigramma_nodo_on_btn_salva_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_nodo_on_btn_salva_clicked), (gpointer)a);
+       g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button152"),
+                         "clicked", G_CALLBACK (organigramma_nodo_on_btn_salvaechiudi_clicked), (gpointer)a);
+
+       gtk_form_clear (priv->form);
 
        priv->id = id;
 
@@ -186,6 +196,7 @@ OrganigrammaNodo
        if (!autoz_is_allowed (priv->commons->autoz, priv->commons->role_utente, ires1, FALSE))
                {
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button5")), FALSE);
+                       gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button152")), FALSE);
                }
 
        return a;
@@ -216,7 +227,7 @@ organigramma_nodo_carica (OrganigrammaNodo *nodo)
 }
 
 static void
-organigramma_nodo_salva (OrganigrammaNodo *nodo)
+organigramma_nodo_salva (OrganigrammaNodo *nodo, gboolean chiudi)
 {
        gchar *sql;
 
@@ -253,6 +264,12 @@ organigramma_nodo_salva (OrganigrammaNodo *nodo)
                                               GTK_MESSAGE_INFO,
                                               GTK_BUTTONS_OK,
                                               "Salvataggio eseguito con successo.");
+
+                       if (chiudi)
+                               {
+                                       gtk_widget_destroy (priv->w);
+                                       g_object_unref (nodo);
+                               }
                }
        else
                {
@@ -384,5 +401,12 @@ static void
 organigramma_nodo_on_btn_salva_clicked (GtkButton *button,
                       gpointer user_data)
 {
-       organigramma_nodo_salva ((OrganigrammaNodo *)user_data);
+       organigramma_nodo_salva ((OrganigrammaNodo *)user_data, FALSE);
+}
+
+static void
+organigramma_nodo_on_btn_salvaechiudi_clicked (GtkButton *button,
+                      gpointer user_data)
+{
+       organigramma_nodo_salva ((OrganigrammaNodo *)user_data, TRUE);
 }
index 93019aac16ef2a75e9c63b72ccfa720c40a0ec57..b69b06c58a42cb5b577b27666d993239c8bff0e0 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2010-2012 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2013 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  *
  */
 
+#ifdef HAVE_CONFIG_H
+       #include <config.h>
+#endif
+
 #include <libautoz/autoz.h>
 #include <libgtkform/form.h>
 #include <libgtkform/fielddatetime.h>
@@ -36,7 +40,7 @@ static void organigramma_persona_class_init (OrganigrammaPersonaClass *klass);
 static void organigramma_persona_init (OrganigrammaPersona *persona);
 
 static void organigramma_persona_carica (OrganigrammaPersona *persona);
-static void organigramma_persona_salva (OrganigrammaPersona *persona);
+static void organigramma_persona_salva (OrganigrammaPersona *persona, gboolean chiudi);
 
 static void organigramma_persona_carica_incarichi (OrganigrammaPersona *persona);
 static void organigramma_persona_carica_nodi (OrganigrammaPersona *persona);
@@ -153,6 +157,8 @@ static void organigramma_persona_on_btn_annulla_clicked (GtkButton *button,
                                     gpointer user_data);
 static void organigramma_persona_on_btn_salva_clicked (GtkButton *button,
                                   gpointer user_data);
+static void organigramma_persona_on_btn_salvaechiudi_clicked (GtkButton *button,
+                                  gpointer user_data);
 
 #define ORGANIGRAMMA_PERSONA_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_ORGANIGRAMMA_PERSONA, OrganigrammaPersonaPrivate))
 
@@ -398,6 +404,8 @@ OrganigrammaPersona
                          "clicked", G_CALLBACK (organigramma_persona_on_btn_annulla_clicked), (gpointer)a);
        g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button66"),
                          "clicked", G_CALLBACK (organigramma_persona_on_btn_salva_clicked), (gpointer)a);
+       g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button153"),
+                         "clicked", G_CALLBACK (organigramma_persona_on_btn_salvaechiudi_clicked), (gpointer)a);
 
        gtk_form_clear (priv->form);
 
@@ -433,6 +441,7 @@ OrganigrammaPersona
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button76")), FALSE);
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button78")), FALSE);
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button66")), FALSE);
+                       gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button153")), FALSE);
                }
 
        return a;
@@ -489,7 +498,7 @@ organigramma_persona_carica (OrganigrammaPersona *persona)
 }
 
 static void
-organigramma_persona_salva (OrganigrammaPersona *persona)
+organigramma_persona_salva (OrganigrammaPersona *persona, gboolean chiudi)
 {
        gchar *sql;
 
@@ -537,6 +546,12 @@ organigramma_persona_salva (OrganigrammaPersona *persona)
                                               GTK_MESSAGE_INFO,
                                               GTK_BUTTONS_OK,
                                               "Salvataggio eseguito con successo.");
+
+                       if (chiudi)
+                               {
+                                       gtk_widget_destroy (priv->w);
+                                       g_object_unref (persona);
+                               }
                }
        else
                {
@@ -1765,7 +1780,6 @@ organigramma_persona_on_btn_annulla_clicked (GtkButton *button,
                         gpointer user_data)
 {
        OrganigrammaPersona *persona = (OrganigrammaPersona *)user_data;
-
        OrganigrammaPersonaPrivate *priv = ORGANIGRAMMA_PERSONA_GET_PRIVATE (persona);
 
        if (organigramma_persona_conferma_chiusura (persona)) gtk_widget_destroy (priv->w);
@@ -1775,5 +1789,12 @@ static void
 organigramma_persona_on_btn_salva_clicked (GtkButton *button,
                       gpointer user_data)
 {
-       organigramma_persona_salva ((OrganigrammaPersona *)user_data);
+       organigramma_persona_salva ((OrganigrammaPersona *)user_data, FALSE);
+}
+
+static void
+organigramma_persona_on_btn_salvaechiudi_clicked (GtkButton *button,
+                      gpointer user_data)
+{
+       organigramma_persona_salva ((OrganigrammaPersona *)user_data, TRUE);
 }
index ea7fb3cf3410d3bdef87a56fa41cb6b22474ad6e..d22f937e38db1803a5cff014f46fd3839439491f 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2009-2012 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2009-2013 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -32,7 +32,7 @@ static void organigramma_persona_incarico_class_init (OrganigrammaPersonaIncaric
 static void organigramma_persona_incarico_init (OrganigrammaPersonaIncarico *organigramma_persona_incarico);
 
 static void organigramma_persona_incarico_carica (OrganigrammaPersonaIncarico *organigramma_persona_incarico);
-static void organigramma_persona_incarico_salva (OrganigrammaPersonaIncarico *organigramma_persona_incarico);
+static void organigramma_persona_incarico_salva (OrganigrammaPersonaIncarico *organigramma_persona_incarico, gboolean chiudi);
 
 static gboolean organigramma_persona_incarico_conferma_chiusura (OrganigrammaPersonaIncarico *organigramma_persona_incarico);
 
@@ -53,6 +53,8 @@ static void organigramma_persona_incarico_on_btn_annulla_clicked (GtkButton *but
                                     gpointer user_data);
 static void organigramma_persona_incarico_on_btn_salva_clicked (GtkButton *button,
                                   gpointer user_data);
+static void organigramma_persona_incarico_on_btn_salvaechiudi_clicked (GtkButton *button,
+                                  gpointer user_data);
 
 
 #define ORGANIGRAMMA_PERSONA_INCARICO_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_ORGANIGRAMMA_PERSONA_INCARICO, OrganigrammaPersonaIncaricoPrivate))
@@ -159,12 +161,14 @@ OrganigrammaPersonaIncarico
                                                      NULL);
 
        g_signal_connect (priv->w,
-                         "delete-event", G_CALLBACK (organigramma_persona_incarico_on_w_organigramma_persona_incarico_delete_event), (gpointer *)a);
+                         "delete-event", G_CALLBACK (organigramma_persona_incarico_on_w_organigramma_persona_incarico_delete_event), (gpointer)a);
 
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button98")),
-                         "clicked", G_CALLBACK (organigramma_persona_incarico_on_btn_annulla_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_persona_incarico_on_btn_annulla_clicked), (gpointer)a);
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button99")),
-                         "clicked", G_CALLBACK (organigramma_persona_incarico_on_btn_salva_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_persona_incarico_on_btn_salva_clicked), (gpointer)a);
+       g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button158")),
+                         "clicked", G_CALLBACK (organigramma_persona_incarico_on_btn_salvaechiudi_clicked), (gpointer)a);
 
        priv->id = id;
        if (priv->id == 0)
@@ -185,6 +189,7 @@ OrganigrammaPersonaIncarico
        if (!autoz_is_allowed (priv->commons->autoz, priv->commons->role_utente, ires1, FALSE))
                {
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button99")), FALSE);
+                       gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button158")), FALSE);
                }
 
        return a;
@@ -218,7 +223,7 @@ organigramma_persona_incarico_carica (OrganigrammaPersonaIncarico *organigramma_
 }
 
 static void
-organigramma_persona_incarico_salva (OrganigrammaPersonaIncarico *organigramma_persona_incarico)
+organigramma_persona_incarico_salva (OrganigrammaPersonaIncarico *organigramma_persona_incarico, gboolean chiudi)
 {
        gchar *sql;
 
@@ -255,6 +260,12 @@ organigramma_persona_incarico_salva (OrganigrammaPersonaIncarico *organigramma_p
                                               GTK_MESSAGE_INFO,
                                               GTK_BUTTONS_OK,
                                               "Salvataggio eseguito con successo.");
+
+                       if (chiudi)
+                               {
+                                       gtk_widget_destroy (priv->w);
+                                       g_object_unref (organigramma_persona_incarico);
+                               }
                }
        else
                {
@@ -340,5 +351,12 @@ static void
 organigramma_persona_incarico_on_btn_salva_clicked (GtkButton *button,
                       gpointer user_data)
 {
-       organigramma_persona_incarico_salva ((OrganigrammaPersonaIncarico *)user_data);
+       organigramma_persona_incarico_salva ((OrganigrammaPersonaIncarico *)user_data, FALSE);
+}
+
+static void
+organigramma_persona_incarico_on_btn_salvaechiudi_clicked (GtkButton *button,
+                      gpointer user_data)
+{
+       organigramma_persona_incarico_salva ((OrganigrammaPersonaIncarico *)user_data, TRUE);
 }
index 584686cd2544d248e3d3fdf0185044093a7ed239..38c70d12884d1de1c01b80de715c59e591a2fe2a 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2009-2012 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2009-2013 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -32,9 +32,7 @@ static void organigramma_persona_nodo_class_init (OrganigrammaPersonaNodoClass *
 static void organigramma_persona_nodo_init (OrganigrammaPersonaNodo *organigramma_persona_nodo);
 
 static void organigramma_persona_nodo_carica (OrganigrammaPersonaNodo *organigramma_persona_nodo);
-static void organigramma_persona_nodo_salva (OrganigrammaPersonaNodo *organigramma_persona_nodo);
-
-static void organigramma_persona_nodo_carica_nodo (OrganigrammaPersonaNodo *indirizzo);
+static void organigramma_persona_nodo_salva (OrganigrammaPersonaNodo *organigramma_persona_nodo, gboolean chiudi);
 
 static gboolean organigramma_persona_nodo_conferma_chiusura (OrganigrammaPersonaNodo *organigramma_persona_nodo);
 
@@ -60,6 +58,8 @@ static void organigramma_persona_nodo_on_btn_annulla_clicked (GtkButton *button,
                                     gpointer user_data);
 static void organigramma_persona_nodo_on_btn_salva_clicked (GtkButton *button,
                                   gpointer user_data);
+static void organigramma_persona_nodo_on_btn_salvaechiudi_clicked (GtkButton *button,
+                                  gpointer user_data);
 
 
 #define ORGANIGRAMMA_PERSONA_NODO_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_ORGANIGRAMMA_PERSONA_NODO, OrganigrammaPersonaNodoPrivate))
@@ -161,15 +161,19 @@ OrganigrammaPersonaNodo
                                                      NULL);
 
        g_signal_connect (priv->w,
-                         "delete-event", G_CALLBACK (organigramma_persona_nodo_on_w_organigramma_persona_nodo_delete_event), (gpointer *)a);
+                         "delete-event", G_CALLBACK (organigramma_persona_nodo_on_w_organigramma_persona_nodo_delete_event), (gpointer)a);
 
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button90")),
-                         "clicked", G_CALLBACK (organigramma_persona_nodo_on_btn_ricerca_via_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_persona_nodo_on_btn_ricerca_via_clicked), (gpointer)a);
 
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button91")),
-                         "clicked", G_CALLBACK (organigramma_persona_nodo_on_btn_annulla_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_persona_nodo_on_btn_annulla_clicked), (gpointer)a);
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button92")),
-                         "clicked", G_CALLBACK (organigramma_persona_nodo_on_btn_salva_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_persona_nodo_on_btn_salva_clicked), (gpointer)a);
+       g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button159")),
+                         "clicked", G_CALLBACK (organigramma_persona_nodo_on_btn_salvaechiudi_clicked), (gpointer)a);
+
+       gtk_form_clear (priv->form);
 
        priv->id = id;
        if (priv->id == 0)
@@ -190,6 +194,7 @@ OrganigrammaPersonaNodo
        if (!autoz_is_allowed (priv->commons->autoz, priv->commons->role_utente, ires1, FALSE))
                {
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button92")), FALSE);
+                       gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button159")), FALSE);
                }
 
        return a;
@@ -223,7 +228,7 @@ organigramma_persona_nodo_carica (OrganigrammaPersonaNodo *organigramma_persona_
 }
 
 static void
-organigramma_persona_nodo_salva (OrganigrammaPersonaNodo *organigramma_persona_nodo)
+organigramma_persona_nodo_salva (OrganigrammaPersonaNodo *organigramma_persona_nodo, gboolean chiudi)
 {
        gchar *sql;
 
@@ -260,6 +265,12 @@ organigramma_persona_nodo_salva (OrganigrammaPersonaNodo *organigramma_persona_n
                                               GTK_MESSAGE_INFO,
                                               GTK_BUTTONS_OK,
                                               "Salvataggio eseguito con successo.");
+
+                       if (chiudi)
+                               {
+                                       gtk_widget_destroy (priv->w);
+                                       g_object_unref (organigramma_persona_nodo);
+                               }
                }
        else
                {
@@ -374,5 +385,12 @@ static void
 organigramma_persona_nodo_on_btn_salva_clicked (GtkButton *button,
                       gpointer user_data)
 {
-       organigramma_persona_nodo_salva ((OrganigrammaPersonaNodo *)user_data);
+       organigramma_persona_nodo_salva ((OrganigrammaPersonaNodo *)user_data, FALSE);
+}
+
+static void
+organigramma_persona_nodo_on_btn_salvaechiudi_clicked (GtkButton *button,
+                      gpointer user_data)
+{
+       organigramma_persona_nodo_salva ((OrganigrammaPersonaNodo *)user_data, TRUE);
 }
index 868027b02e54e32d0109126c614f98a1843ad7dd..3794dce595af6997b51dc92f5cade5db3ed7924c 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2009-2012 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2009-2013 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -31,7 +31,7 @@ static void organigramma_persona_nodo_recapito_class_init (OrganigrammaPersonaNo
 static void organigramma_persona_nodo_recapito_init (OrganigrammaPersonaNodoRecapito *organigramma_persona_nodo_recapito);
 
 static void organigramma_persona_nodo_recapito_carica (OrganigrammaPersonaNodoRecapito *organigramma_persona_nodo_recapito);
-static void organigramma_persona_nodo_recapito_salva (OrganigrammaPersonaNodoRecapito *organigramma_persona_nodo_recapito);
+static void organigramma_persona_nodo_recapito_salva (OrganigrammaPersonaNodoRecapito *organigramma_persona_nodo_recapito, gboolean chiudi);
 
 static gboolean organigramma_persona_nodo_recapito_conferma_chiusura (OrganigrammaPersonaNodoRecapito *organigramma_persona_nodo_recapito);
 
@@ -52,6 +52,8 @@ static void organigramma_persona_nodo_recapito_on_btn_annulla_clicked (GtkButton
                                     gpointer user_data);
 static void organigramma_persona_nodo_recapito_on_btn_salva_clicked (GtkButton *button,
                                   gpointer user_data);
+static void organigramma_persona_nodo_recapito_on_btn_salvaechiudi_clicked (GtkButton *button,
+                                  gpointer user_data);
 
 
 #define ORGANIGRAMMA_PERSONA_NODO_RECAPITO_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_ORGANIGRAMMA_PERSONA_NODO_RECAPITO, OrganigrammaPersonaNodoRecapitoPrivate))
@@ -162,6 +164,10 @@ OrganigrammaPersonaNodoRecapito
                          "clicked", G_CALLBACK (organigramma_persona_nodo_recapito_on_btn_annulla_clicked), (gpointer *)a);
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button94")),
                          "clicked", G_CALLBACK (organigramma_persona_nodo_recapito_on_btn_salva_clicked), (gpointer *)a);
+       g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button160")),
+                         "clicked", G_CALLBACK (organigramma_persona_nodo_recapito_on_btn_salvaechiudi_clicked), (gpointer *)a);
+
+       gtk_form_clear (priv->form);
 
        priv->id = id;
        if (priv->id == 0)
@@ -183,6 +189,7 @@ OrganigrammaPersonaNodoRecapito
        if (!autoz_is_allowed (priv->commons->autoz, priv->commons->role_utente, ires1, FALSE))
                {
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button94")), FALSE);
+                       gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button160")), FALSE);
                }
 
        return a;
@@ -216,7 +223,7 @@ organigramma_persona_nodo_recapito_carica (OrganigrammaPersonaNodoRecapito *orga
 }
 
 static void
-organigramma_persona_nodo_recapito_salva (OrganigrammaPersonaNodoRecapito *organigramma_persona_nodo_recapito)
+organigramma_persona_nodo_recapito_salva (OrganigrammaPersonaNodoRecapito *organigramma_persona_nodo_recapito, gboolean chiudi)
 {
        gchar *sql;
 
@@ -253,6 +260,12 @@ organigramma_persona_nodo_recapito_salva (OrganigrammaPersonaNodoRecapito *organ
                                               GTK_MESSAGE_INFO,
                                               GTK_BUTTONS_OK,
                                               "Salvataggio eseguito con successo.");
+
+                       if (chiudi)
+                               {
+                                       gtk_widget_destroy (priv->w);
+                                       g_object_unref (organigramma_persona_nodo_recapito);
+                               }
                }
        else
                {
@@ -338,5 +351,12 @@ static void
 organigramma_persona_nodo_recapito_on_btn_salva_clicked (GtkButton *button,
                       gpointer user_data)
 {
-       organigramma_persona_nodo_recapito_salva ((OrganigrammaPersonaNodoRecapito *)user_data);
+       organigramma_persona_nodo_recapito_salva ((OrganigrammaPersonaNodoRecapito *)user_data, FALSE);
+}
+
+static void
+organigramma_persona_nodo_recapito_on_btn_salvaechiudi_clicked (GtkButton *button,
+                      gpointer user_data)
+{
+       organigramma_persona_nodo_recapito_salva ((OrganigrammaPersonaNodoRecapito *)user_data, TRUE);
 }
index 8d541e4bc34faacdca3da3994f481a1c52ddf095..98da9f9c4a98b366f6cfb5572e529398c9e0b2b8 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2009-2012 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2009-2013 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -31,7 +31,7 @@ static void organigramma_persona_recapito_class_init (OrganigrammaPersonaRecapit
 static void organigramma_persona_recapito_init (OrganigrammaPersonaRecapito *organigramma_persona_recapito);
 
 static void organigramma_persona_recapito_carica (OrganigrammaPersonaRecapito *organigramma_persona_recapito);
-static void organigramma_persona_recapito_salva (OrganigrammaPersonaRecapito *organigramma_persona_recapito);
+static void organigramma_persona_recapito_salva (OrganigrammaPersonaRecapito *organigramma_persona_recapito, gboolean chiudi);
 
 static gboolean organigramma_persona_recapito_conferma_chiusura (OrganigrammaPersonaRecapito *organigramma_persona_recapito);
 
@@ -52,6 +52,8 @@ static void organigramma_persona_recapito_on_btn_annulla_clicked (GtkButton *but
                                     gpointer user_data);
 static void organigramma_persona_recapito_on_btn_salva_clicked (GtkButton *button,
                                   gpointer user_data);
+static void organigramma_persona_recapito_on_btn_salvaechiudi_clicked (GtkButton *button,
+                                  gpointer user_data);
 
 
 #define ORGANIGRAMMA_PERSONA_RECAPITO_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_ORGANIGRAMMA_PERSONA_RECAPITO, OrganigrammaPersonaRecapitoPrivate))
@@ -153,12 +155,16 @@ OrganigrammaPersonaRecapito
                                                      NULL);
 
        g_signal_connect (priv->w,
-                         "delete-event", G_CALLBACK (organigramma_persona_recapito_on_w_organigramma_persona_recapito_delete_event), (gpointer *)a);
+                         "delete-event", G_CALLBACK (organigramma_persona_recapito_on_w_organigramma_persona_recapito_delete_event), (gpointer)a);
 
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button87")),
-                         "clicked", G_CALLBACK (organigramma_persona_recapito_on_btn_annulla_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_persona_recapito_on_btn_annulla_clicked), (gpointer)a);
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button88")),
-                         "clicked", G_CALLBACK (organigramma_persona_recapito_on_btn_salva_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_persona_recapito_on_btn_salva_clicked), (gpointer)a);
+       g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button163")),
+                         "clicked", G_CALLBACK (organigramma_persona_recapito_on_btn_salvaechiudi_clicked), (gpointer)a);
+
+       gtk_form_clear (priv->form);
 
        priv->id = id;
        if (priv->id == 0)
@@ -179,6 +185,7 @@ OrganigrammaPersonaRecapito
        if (!autoz_is_allowed (priv->commons->autoz, priv->commons->role_utente, ires1, FALSE))
                {
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button88")), FALSE);
+                       gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button163")), FALSE);
                }
 
        return a;
@@ -212,7 +219,7 @@ organigramma_persona_recapito_carica (OrganigrammaPersonaRecapito *organigramma_
 }
 
 static void
-organigramma_persona_recapito_salva (OrganigrammaPersonaRecapito *organigramma_persona_recapito)
+organigramma_persona_recapito_salva (OrganigrammaPersonaRecapito *organigramma_persona_recapito, gboolean chiudi)
 {
        gchar *sql;
 
@@ -249,6 +256,12 @@ organigramma_persona_recapito_salva (OrganigrammaPersonaRecapito *organigramma_p
                                               GTK_MESSAGE_INFO,
                                               GTK_BUTTONS_OK,
                                               "Salvataggio eseguito con successo.");
+
+                       if (chiudi)
+                               {
+                                       gtk_widget_destroy (priv->w);
+                                       g_object_unref (organigramma_persona_recapito);
+                               }
                }
        else
                {
@@ -334,5 +347,12 @@ static void
 organigramma_persona_recapito_on_btn_salva_clicked (GtkButton *button,
                       gpointer user_data)
 {
-       organigramma_persona_recapito_salva ((OrganigrammaPersonaRecapito *)user_data);
+       organigramma_persona_recapito_salva ((OrganigrammaPersonaRecapito *)user_data, FALSE);
+}
+
+static void
+organigramma_persona_recapito_on_btn_salvaechiudi_clicked (GtkButton *button,
+                      gpointer user_data)
+{
+       organigramma_persona_recapito_salva ((OrganigrammaPersonaRecapito *)user_data, TRUE);
 }
index 98aed543031c4c435fba92ace6a0b44968c4603c..7d35e781f60c5e2866aa7570229c19433578cb4b 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2009-2012 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2009-2013 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -32,9 +32,7 @@ static void organigramma_persona_ufficio_class_init (OrganigrammaPersonaUfficioC
 static void organigramma_persona_ufficio_init (OrganigrammaPersonaUfficio *organigramma_persona_ufficio);
 
 static void organigramma_persona_ufficio_carica (OrganigrammaPersonaUfficio *organigramma_persona_ufficio);
-static void organigramma_persona_ufficio_salva (OrganigrammaPersonaUfficio *organigramma_persona_ufficio);
-
-static void organigramma_persona_ufficio_carica_ufficio (OrganigrammaPersonaUfficio *indirizzo);
+static void organigramma_persona_ufficio_salva (OrganigrammaPersonaUfficio *organigramma_persona_ufficio, gboolean chiudi);
 
 static gboolean organigramma_persona_ufficio_conferma_chiusura (OrganigrammaPersonaUfficio *organigramma_persona_ufficio);
 
@@ -60,6 +58,8 @@ static void organigramma_persona_ufficio_on_btn_annulla_clicked (GtkButton *butt
                                     gpointer user_data);
 static void organigramma_persona_ufficio_on_btn_salva_clicked (GtkButton *button,
                                   gpointer user_data);
+static void organigramma_persona_ufficio_on_btn_salvaechiudi_clicked (GtkButton *button,
+                                  gpointer user_data);
 
 
 #define ORGANIGRAMMA_PERSONA_UFFICIO_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_ORGANIGRAMMA_PERSONA_UFFICIO, OrganigrammaPersonaUfficioPrivate))
@@ -161,15 +161,19 @@ OrganigrammaPersonaUfficio
                                                      NULL);
 
        g_signal_connect (priv->w,
-                         "delete-event", G_CALLBACK (organigramma_persona_ufficio_on_w_organigramma_persona_ufficio_delete_event), (gpointer *)a);
+                         "delete-event", G_CALLBACK (organigramma_persona_ufficio_on_w_organigramma_persona_ufficio_delete_event), (gpointer)a);
 
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button82")),
-                         "clicked", G_CALLBACK (organigramma_persona_ufficio_on_btn_ricerca_via_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_persona_ufficio_on_btn_ricerca_via_clicked), (gpointer)a);
 
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button83")),
-                         "clicked", G_CALLBACK (organigramma_persona_ufficio_on_btn_annulla_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_persona_ufficio_on_btn_annulla_clicked), (gpointer)a);
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button84")),
-                         "clicked", G_CALLBACK (organigramma_persona_ufficio_on_btn_salva_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_persona_ufficio_on_btn_salva_clicked), (gpointer)a);
+       g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button161")),
+                         "clicked", G_CALLBACK (organigramma_persona_ufficio_on_btn_salvaechiudi_clicked), (gpointer)a);
+
+       gtk_form_clear (priv->form);
 
        priv->id = id;
        if (priv->id == 0)
@@ -190,6 +194,7 @@ OrganigrammaPersonaUfficio
        if (!autoz_is_allowed (priv->commons->autoz, priv->commons->role_utente, ires1, FALSE))
                {
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button84")), FALSE);
+                       gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button161")), FALSE);
                }
 
        return a;
@@ -223,7 +228,7 @@ organigramma_persona_ufficio_carica (OrganigrammaPersonaUfficio *organigramma_pe
 }
 
 static void
-organigramma_persona_ufficio_salva (OrganigrammaPersonaUfficio *organigramma_persona_ufficio)
+organigramma_persona_ufficio_salva (OrganigrammaPersonaUfficio *organigramma_persona_ufficio, gboolean chiudi)
 {
        gchar *sql;
 
@@ -260,6 +265,12 @@ organigramma_persona_ufficio_salva (OrganigrammaPersonaUfficio *organigramma_per
                                               GTK_MESSAGE_INFO,
                                               GTK_BUTTONS_OK,
                                               "Salvataggio eseguito con successo.");
+
+                       if (chiudi)
+                               {
+                                       gtk_widget_destroy (priv->w);
+                                       g_object_unref (organigramma_persona_ufficio);
+                               }
                }
        else
                {
@@ -374,5 +385,12 @@ static void
 organigramma_persona_ufficio_on_btn_salva_clicked (GtkButton *button,
                       gpointer user_data)
 {
-       organigramma_persona_ufficio_salva ((OrganigrammaPersonaUfficio *)user_data);
+       organigramma_persona_ufficio_salva ((OrganigrammaPersonaUfficio *)user_data, FALSE);
+}
+
+static void
+organigramma_persona_ufficio_on_btn_salvaechiudi_clicked (GtkButton *button,
+                      gpointer user_data)
+{
+       organigramma_persona_ufficio_salva ((OrganigrammaPersonaUfficio *)user_data, TRUE);
 }
index 82727ed91ee5eef2f411560e5eab2dacb218388b..c6f76f1b7cbbf75824969568c3e7efe946325d2b 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2009-2012 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2009-2013 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -31,7 +31,7 @@ static void organigramma_persona_ufficio_recapito_class_init (OrganigrammaPerson
 static void organigramma_persona_ufficio_recapito_init (OrganigrammaPersonaUfficioRecapito *organigramma_persona_ufficio_recapito);
 
 static void organigramma_persona_ufficio_recapito_carica (OrganigrammaPersonaUfficioRecapito *organigramma_persona_ufficio_recapito);
-static void organigramma_persona_ufficio_recapito_salva (OrganigrammaPersonaUfficioRecapito *organigramma_persona_ufficio_recapito);
+static void organigramma_persona_ufficio_recapito_salva (OrganigrammaPersonaUfficioRecapito *organigramma_persona_ufficio_recapito, gboolean chiudi);
 
 static gboolean organigramma_persona_ufficio_recapito_conferma_chiusura (OrganigrammaPersonaUfficioRecapito *organigramma_persona_ufficio_recapito);
 
@@ -52,6 +52,8 @@ static void organigramma_persona_ufficio_recapito_on_btn_annulla_clicked (GtkBut
                                     gpointer user_data);
 static void organigramma_persona_ufficio_recapito_on_btn_salva_clicked (GtkButton *button,
                                   gpointer user_data);
+static void organigramma_persona_ufficio_recapito_on_btn_salvaechiudi_clicked (GtkButton *button,
+                                  gpointer user_data);
 
 
 #define ORGANIGRAMMA_PERSONA_UFFICIO_RECAPITO_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_ORGANIGRAMMA_PERSONA_UFFICIO_RECAPITO, OrganigrammaPersonaUfficioRecapitoPrivate))
@@ -156,12 +158,14 @@ OrganigrammaPersonaUfficioRecapito
                                                      NULL);
 
        g_signal_connect (priv->w,
-                         "delete-event", G_CALLBACK (organigramma_persona_ufficio_recapito_on_w_organigramma_persona_ufficio_recapito_delete_event), (gpointer *)a);
+                         "delete-event", G_CALLBACK (organigramma_persona_ufficio_recapito_on_w_organigramma_persona_ufficio_recapito_delete_event), (gpointer)a);
 
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button85")),
-                         "clicked", G_CALLBACK (organigramma_persona_ufficio_recapito_on_btn_annulla_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_persona_ufficio_recapito_on_btn_annulla_clicked), (gpointer)a);
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button86")),
-                         "clicked", G_CALLBACK (organigramma_persona_ufficio_recapito_on_btn_salva_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_persona_ufficio_recapito_on_btn_salva_clicked), (gpointer)a);
+       g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button162")),
+                         "clicked", G_CALLBACK (organigramma_persona_ufficio_recapito_on_btn_salvaechiudi_clicked), (gpointer)a);
 
        priv->id = id;
        if (priv->id == 0)
@@ -183,6 +187,7 @@ OrganigrammaPersonaUfficioRecapito
        if (!autoz_is_allowed (priv->commons->autoz, priv->commons->role_utente, ires1, FALSE))
                {
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button86")), FALSE);
+                       gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button162")), FALSE);
                }
 
        return a;
@@ -216,7 +221,7 @@ organigramma_persona_ufficio_recapito_carica (OrganigrammaPersonaUfficioRecapito
 }
 
 static void
-organigramma_persona_ufficio_recapito_salva (OrganigrammaPersonaUfficioRecapito *organigramma_persona_ufficio_recapito)
+organigramma_persona_ufficio_recapito_salva (OrganigrammaPersonaUfficioRecapito *organigramma_persona_ufficio_recapito, gboolean chiudi)
 {
        gchar *sql;
 
@@ -253,6 +258,12 @@ organigramma_persona_ufficio_recapito_salva (OrganigrammaPersonaUfficioRecapito
                                               GTK_MESSAGE_INFO,
                                               GTK_BUTTONS_OK,
                                               "Salvataggio eseguito con successo.");
+
+                       if (chiudi)
+                               {
+                                       gtk_widget_destroy (priv->w);
+                                       g_object_unref (organigramma_persona_ufficio_recapito);
+                               }
                }
        else
                {
@@ -338,5 +349,12 @@ static void
 organigramma_persona_ufficio_recapito_on_btn_salva_clicked (GtkButton *button,
                       gpointer user_data)
 {
-       organigramma_persona_ufficio_recapito_salva ((OrganigrammaPersonaUfficioRecapito *)user_data);
+       organigramma_persona_ufficio_recapito_salva ((OrganigrammaPersonaUfficioRecapito *)user_data, FALSE);
+}
+
+static void
+organigramma_persona_ufficio_recapito_on_btn_salvaechiudi_clicked (GtkButton *button,
+                      gpointer user_data)
+{
+       organigramma_persona_ufficio_recapito_salva ((OrganigrammaPersonaUfficioRecapito *)user_data, TRUE);
 }
index 245088c2b661c85711137953641af02a4a35ebee..d17ab7c91bdc4de1f4862b237020b3fa6dcc8aab 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2010-2012 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2013 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  *
  */
 
+#ifdef HAVE_CONFIG_H
+       #include <config.h>
+#endif
+
 #include <libautoz/autoz.h>
 #include <libgtkform/form.h>
 #include <libsolipa/utils.h>
@@ -27,7 +31,7 @@ static void organigramma_posizione_economica_class_init (OrganigrammaPosizioneEc
 static void organigramma_posizione_economica_init (OrganigrammaPosizioneEconomica *posizione_economica);
 
 static void organigramma_posizione_economica_carica (OrganigrammaPosizioneEconomica *posizione_economica);
-static void organigramma_posizione_economica_salva (OrganigrammaPosizioneEconomica *posizione_economica);
+static void organigramma_posizione_economica_salva (OrganigrammaPosizioneEconomica *posizione_economica, gboolean chiudi);
 
 static gboolean organigramma_posizione_economica_conferma_chiusura (OrganigrammaPosizioneEconomica *posizione_economica);
 
@@ -48,6 +52,8 @@ static void organigramma_posizione_economica_on_btn_annulla_clicked (GtkButton *
                                     gpointer user_data);
 static void organigramma_posizione_economica_on_btn_salva_clicked (GtkButton *button,
                                   gpointer user_data);
+static void organigramma_posizione_economica_on_btn_salvaechiudi_clicked (GtkButton *button,
+                                  gpointer user_data);
 
 #define POSIZIONE_ECONOMICA_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_POSIZIONE_ECONOMICA, OrganigrammaPosizioneEconomicaPrivate))
 
@@ -144,12 +150,14 @@ OrganigrammaPosizioneEconomica
                                                      NULL);
 
        g_signal_connect (priv->w,
-                         "delete-event", G_CALLBACK (organigramma_posizione_economica_on_w_organigramma_posizione_economica_delete_event), (gpointer *)a);
+                         "delete-event", G_CALLBACK (organigramma_posizione_economica_on_w_organigramma_posizione_economica_delete_event), (gpointer)a);
 
        g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button121"),
-                         "clicked", G_CALLBACK (organigramma_posizione_economica_on_btn_annulla_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_posizione_economica_on_btn_annulla_clicked), (gpointer)a);
        g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button122"),
-                         "clicked", G_CALLBACK (organigramma_posizione_economica_on_btn_salva_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_posizione_economica_on_btn_salva_clicked), (gpointer)a);
+       g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button147"),
+                         "clicked", G_CALLBACK (organigramma_posizione_economica_on_btn_salvaechiudi_clicked), (gpointer)a);
 
        priv->id = id;
 
@@ -169,6 +177,7 @@ OrganigrammaPosizioneEconomica
        if (!autoz_is_allowed (priv->commons->autoz, priv->commons->role_utente, ires1, FALSE))
                {
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button122")), FALSE);
+                       gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button147")), FALSE);
                }
 
        return a;
@@ -197,7 +206,7 @@ organigramma_posizione_economica_carica (OrganigrammaPosizioneEconomica *posizio
 }
 
 static void
-organigramma_posizione_economica_salva (OrganigrammaPosizioneEconomica *posizione_economica)
+organigramma_posizione_economica_salva (OrganigrammaPosizioneEconomica *posizione_economica, gboolean chiudi)
 {
        gchar *sql;
 
@@ -234,6 +243,12 @@ organigramma_posizione_economica_salva (OrganigrammaPosizioneEconomica *posizion
                                               GTK_MESSAGE_INFO,
                                               GTK_BUTTONS_OK,
                                               "Salvataggio eseguito con successo.");
+
+                       if (chiudi)
+                               {
+                                       gtk_widget_destroy (priv->w);
+                                       g_object_unref (posizione_economica);
+                               }
                }
        else
                {
@@ -323,5 +338,12 @@ static void
 organigramma_posizione_economica_on_btn_salva_clicked (GtkButton *button,
                       gpointer user_data)
 {
-       organigramma_posizione_economica_salva ((OrganigrammaPosizioneEconomica *)user_data);
+       organigramma_posizione_economica_salva ((OrganigrammaPosizioneEconomica *)user_data, FALSE);
+}
+
+static void
+organigramma_posizione_economica_on_btn_salvaechiudi_clicked (GtkButton *button,
+                      gpointer user_data)
+{
+       organigramma_posizione_economica_salva ((OrganigrammaPosizioneEconomica *)user_data, TRUE);
 }
index 2aeda3db8f8bfd8b4710a5f8852b2614499e7a1b..4bde7db75cc5b7594655dabef9c339e9f55a4a85 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2010-2012 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2013 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  *
  */
 
+#ifdef HAVE_CONFIG_H
+       #include <config.h>
+#endif
+
 #include <libautoz/autoz.h>
 #include <libgtkform/form.h>
 #include <libgtkform/fielddatetime.h>
@@ -28,7 +32,7 @@ static void organigramma_profilo_professionale_class_init (OrganigrammaProfiloPr
 static void organigramma_profilo_professionale_init (OrganigrammaProfiloProfessionale *profilo_professionale);
 
 static void organigramma_profilo_professionale_carica (OrganigrammaProfiloProfessionale *profilo_professionale);
-static void organigramma_profilo_professionale_salva (OrganigrammaProfiloProfessionale *profilo_professionale);
+static void organigramma_profilo_professionale_salva (OrganigrammaProfiloProfessionale *profilo_professionale, gboolean chiudi);
 
 static gboolean organigramma_profilo_professionale_conferma_chiusura (OrganigrammaProfiloProfessionale *profilo_professionale);
 
@@ -49,6 +53,8 @@ static void organigramma_profilo_professionale_on_btn_annulla_clicked (GtkButton
                                     gpointer user_data);
 static void organigramma_profilo_professionale_on_btn_salva_clicked (GtkButton *button,
                                   gpointer user_data);
+static void organigramma_profilo_professionale_on_btn_salvaechiudi_clicked (GtkButton *button,
+                                  gpointer user_data);
 
 #define ORGANIGRAMMA_PROFILO_PROFESSIONALE_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_ORGANIGRAMMA_PROFILO_PROFESSIONALE, OrganigrammaProfiloProfessionalePrivate))
 
@@ -145,12 +151,14 @@ OrganigrammaProfiloProfessionale
                                                      NULL);
 
        g_signal_connect (priv->w,
-                         "delete-event", G_CALLBACK (organigramma_profilo_professionale_on_w_organigramma_profilo_professionale_delete_event), (gpointer *)a);
+                         "delete-event", G_CALLBACK (organigramma_profilo_professionale_on_w_organigramma_profilo_professionale_delete_event), (gpointer)a);
 
        g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button135"),
-                         "clicked", G_CALLBACK (organigramma_profilo_professionale_on_btn_annulla_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_profilo_professionale_on_btn_annulla_clicked), (gpointer)a);
        g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button136"),
-                         "clicked", G_CALLBACK (organigramma_profilo_professionale_on_btn_salva_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_profilo_professionale_on_btn_salva_clicked), (gpointer)a);
+       g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button148"),
+                         "clicked", G_CALLBACK (organigramma_profilo_professionale_on_btn_salvaechiudi_clicked), (gpointer)a);
 
        priv->id = id;
 
@@ -170,6 +178,7 @@ OrganigrammaProfiloProfessionale
        if (!autoz_is_allowed (priv->commons->autoz, priv->commons->role_utente, ires1, FALSE))
                {
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button136")), FALSE);
+                       gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button148")), FALSE);
                }
 
        return a;
@@ -200,7 +209,7 @@ organigramma_profilo_professionale_carica (OrganigrammaProfiloProfessionale *pro
 }
 
 static void
-organigramma_profilo_professionale_salva (OrganigrammaProfiloProfessionale *profilo_professionale)
+organigramma_profilo_professionale_salva (OrganigrammaProfiloProfessionale *profilo_professionale, gboolean chiudi)
 {
        gchar *sql;
 
@@ -237,6 +246,12 @@ organigramma_profilo_professionale_salva (OrganigrammaProfiloProfessionale *prof
                                               GTK_MESSAGE_INFO,
                                               GTK_BUTTONS_OK,
                                               "Salvataggio eseguito con successo.");
+
+                       if (chiudi)
+                               {
+                                       gtk_widget_destroy (priv->w);
+                                       g_object_unref (profilo_professionale);
+                               }
                }
        else
                {
@@ -326,5 +341,12 @@ static void
 organigramma_profilo_professionale_on_btn_salva_clicked (GtkButton *button,
                       gpointer user_data)
 {
-       organigramma_profilo_professionale_salva ((OrganigrammaProfiloProfessionale *)user_data);
+       organigramma_profilo_professionale_salva ((OrganigrammaProfiloProfessionale *)user_data, FALSE);
+}
+
+static void
+organigramma_profilo_professionale_on_btn_salvaechiudi_clicked (GtkButton *button,
+                      gpointer user_data)
+{
+       organigramma_profilo_professionale_salva ((OrganigrammaProfiloProfessionale *)user_data, TRUE);
 }
index 7532cbb6c0e51c82e23be413c1c44deef81ea8eb..5a44831b77a293343fd551fa19d5e2ae3e316439 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2010-2012 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2013 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  *
  */
 
+#ifdef HAVE_CONFIG_H
+       #include <config.h>
+#endif
+
 #include <libautoz/autoz.h>
 #include <libgtkform/form.h>
 #include <libterritorio/via.h>
@@ -29,7 +33,7 @@ static void organigramma_struttura_class_init (OrganigrammaStrutturaClass *klass
 static void organigramma_struttura_init (OrganigrammaStruttura *struttura);
 
 static void organigramma_struttura_carica (OrganigrammaStruttura *struttura);
-static void organigramma_struttura_salva (OrganigrammaStruttura *struttura);
+static void organigramma_struttura_salva (OrganigrammaStruttura *struttura, gboolean chiudi);
 
 static void organigramma_struttura_carica_indirizzi (OrganigrammaStruttura *struttura);
 
@@ -67,6 +71,8 @@ static void organigramma_struttura_on_btn_annulla_clicked (GtkButton *button,
                                     gpointer user_data);
 static void organigramma_struttura_on_btn_salva_clicked (GtkButton *button,
                                   gpointer user_data);
+static void organigramma_struttura_on_btn_salvaechiudi_clicked (GtkButton *button,
+                                  gpointer user_data);
 
 #define ORGANIGRAMMA_STRUTTURA_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_ORGANIGRAMMA_STRUTTURA, OrganigrammaStrutturaPrivate))
 
@@ -175,23 +181,25 @@ OrganigrammaStruttura
                                                      NULL);
 
        g_signal_connect (priv->w,
-                         "delete-event", G_CALLBACK (organigramma_struttura_on_w_organigramma_struttura_delete_event), (gpointer *)a);
+                         "delete-event", G_CALLBACK (organigramma_struttura_on_w_organigramma_struttura_delete_event), (gpointer)a);
 
        priv->sel_indirizzi = gtk_tree_view_get_selection (GTK_TREE_VIEW (gtk_builder_get_object (priv->commons->gtkbuilder, "treeview9")));
 
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button47")),
-                         "clicked", G_CALLBACK (organigramma_struttura_on_btn_indirizzo_nuovo_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_struttura_on_btn_indirizzo_nuovo_clicked), (gpointer)a);
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button50")),
-                         "clicked", G_CALLBACK (organigramma_struttura_on_btn_indirizzo_modifica_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_struttura_on_btn_indirizzo_modifica_clicked), (gpointer)a);
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button51")),
-                         "clicked", G_CALLBACK (organigramma_struttura_on_btn_indirizzo_elimina_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_struttura_on_btn_indirizzo_elimina_clicked), (gpointer)a);
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "treeview9")),
-                         "row-activated", G_CALLBACK (organigramma_struttura_on_trv_indirizzi_row_activated), (gpointer *)a);
+                         "row-activated", G_CALLBACK (organigramma_struttura_on_trv_indirizzi_row_activated), (gpointer)a);
 
        g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button39"),
-                         "clicked", G_CALLBACK (organigramma_struttura_on_btn_annulla_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_struttura_on_btn_annulla_clicked), (gpointer)a);
        g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button40"),
-                         "clicked", G_CALLBACK (organigramma_struttura_on_btn_salva_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_struttura_on_btn_salva_clicked), (gpointer)a);
+       g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button149"),
+                         "clicked", G_CALLBACK (organigramma_struttura_on_btn_salvaechiudi_clicked), (gpointer)a);
 
        gtk_form_clear (priv->form);
 
@@ -217,6 +225,7 @@ OrganigrammaStruttura
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button47")), FALSE);
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button51")), FALSE);
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button40")), FALSE);
+                       gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button149")), FALSE);
                }
 
        return a;
@@ -248,7 +257,7 @@ organigramma_struttura_carica (OrganigrammaStruttura *struttura)
 }
 
 static void
-organigramma_struttura_salva (OrganigrammaStruttura *struttura)
+organigramma_struttura_salva (OrganigrammaStruttura *struttura, gboolean chiudi)
 {
        gchar *sql;
 
@@ -286,6 +295,12 @@ organigramma_struttura_salva (OrganigrammaStruttura *struttura)
                                               GTK_MESSAGE_INFO,
                                               GTK_BUTTONS_OK,
                                               "Salvataggio eseguito con successo.");
+
+                       if (chiudi)
+                               {
+                                       gtk_widget_destroy (priv->w);
+                                       g_object_unref (struttura);
+                               }
                }
        else
                {
@@ -541,5 +556,12 @@ static void
 organigramma_struttura_on_btn_salva_clicked (GtkButton *button,
                       gpointer user_data)
 {
-       organigramma_struttura_salva ((OrganigrammaStruttura *)user_data);
+       organigramma_struttura_salva ((OrganigrammaStruttura *)user_data, FALSE);
+}
+
+static void
+organigramma_struttura_on_btn_salvaechiudi_clicked (GtkButton *button,
+                      gpointer user_data)
+{
+       organigramma_struttura_salva ((OrganigrammaStruttura *)user_data, TRUE);
 }
index 8a098f499364275ad3b88f7124cd5c198da5c0a6..7b3331cb2d288a3c211bc4cd6a045471939d458c 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2009-2012 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2009-2013 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -33,15 +33,10 @@ static void organigramma_struttura_indirizzo_class_init (OrganigrammaStrutturaIn
 static void organigramma_struttura_indirizzo_init (OrganigrammaStrutturaIndirizzo *struttura_indirizzo);
 
 static void organigramma_struttura_indirizzo_carica (OrganigrammaStrutturaIndirizzo *struttura_indirizzo);
-static void organigramma_struttura_indirizzo_salva (OrganigrammaStrutturaIndirizzo *struttura_indirizzo);
-
-static void organigramma_struttura_indirizzo_carica_indirizzo (OrganigrammaStrutturaIndirizzo *indirizzo);
+static void organigramma_struttura_indirizzo_salva (OrganigrammaStrutturaIndirizzo *struttura_indirizzo, gboolean chiudi);
 
 static gboolean organigramma_struttura_indirizzo_conferma_chiusura (OrganigrammaStrutturaIndirizzo *struttura_indirizzo);
 
-static void indirizzo_on_vie_selezionato (gpointer instance,
-                                          guint id, gpointer user_data);
-
 static void organigramma_struttura_indirizzo_set_property (GObject *object,
                                      guint property_id,
                                      const GValue *value,
@@ -61,6 +56,8 @@ static void organigramma_struttura_indirizzo_on_btn_annulla_clicked (GtkButton *
                                     gpointer user_data);
 static void organigramma_struttura_indirizzo_on_btn_salva_clicked (GtkButton *button,
                                   gpointer user_data);
+static void organigramma_struttura_indirizzo_on_btn_salvaechiudi_clicked (GtkButton *button,
+                                  gpointer user_data);
 
 
 #define ORGANIGRAMMA_STRUTTURA_INDIRIZZO_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_ORGANIGRAMMA_STRUTTURA_INDIRIZZO, OrganigrammaStrutturaIndirizzoPrivate))
@@ -165,15 +162,19 @@ OrganigrammaStrutturaIndirizzo
                                                      NULL);
 
        g_signal_connect (priv->w,
-                         "delete-event", G_CALLBACK (organigramma_struttura_indirizzo_on_w_organigramma_struttura_indirizzo_delete_event), (gpointer *)a);
+                         "delete-event", G_CALLBACK (organigramma_struttura_indirizzo_on_w_organigramma_struttura_indirizzo_delete_event), (gpointer)a);
 
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button54")),
-                         "clicked", G_CALLBACK (organigramma_struttura_indirizzo_on_btn_ricerca_via_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_struttura_indirizzo_on_btn_ricerca_via_clicked), (gpointer)a);
 
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button55")),
-                         "clicked", G_CALLBACK (organigramma_struttura_indirizzo_on_btn_annulla_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_struttura_indirizzo_on_btn_annulla_clicked), (gpointer)a);
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button56")),
-                         "clicked", G_CALLBACK (organigramma_struttura_indirizzo_on_btn_salva_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_struttura_indirizzo_on_btn_salva_clicked), (gpointer)a);
+       g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button150")),
+                         "clicked", G_CALLBACK (organigramma_struttura_indirizzo_on_btn_salvaechiudi_clicked), (gpointer)a);
+
+       gtk_form_clear (priv->form);
 
        priv->id = id;
        if (priv->id == 0)
@@ -194,6 +195,7 @@ OrganigrammaStrutturaIndirizzo
        if (!autoz_is_allowed (priv->commons->autoz, priv->commons->role_utente, ires1, FALSE))
                {
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button56")), FALSE);
+                       gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button150")), FALSE);
                }
 
        return a;
@@ -224,7 +226,7 @@ organigramma_struttura_indirizzo_carica (OrganigrammaStrutturaIndirizzo *struttu
 }
 
 static void
-organigramma_struttura_indirizzo_salva (OrganigrammaStrutturaIndirizzo *struttura_indirizzo)
+organigramma_struttura_indirizzo_salva (OrganigrammaStrutturaIndirizzo *struttura_indirizzo, gboolean chiudi)
 {
        gchar *sql;
 
@@ -261,6 +263,12 @@ organigramma_struttura_indirizzo_salva (OrganigrammaStrutturaIndirizzo *struttur
                                               GTK_MESSAGE_INFO,
                                               GTK_BUTTONS_OK,
                                               "Salvataggio eseguito con successo.");
+
+                       if (chiudi)
+                               {
+                                       gtk_widget_destroy (priv->w);
+                                       g_object_unref (struttura_indirizzo);
+                               }
                }
        else
                {
@@ -377,5 +385,12 @@ static void
 organigramma_struttura_indirizzo_on_btn_salva_clicked (GtkButton *button,
                       gpointer user_data)
 {
-       organigramma_struttura_indirizzo_salva ((OrganigrammaStrutturaIndirizzo *)user_data);
+       organigramma_struttura_indirizzo_salva ((OrganigrammaStrutturaIndirizzo *)user_data, FALSE);
+}
+
+static void
+organigramma_struttura_indirizzo_on_btn_salvaechiudi_clicked (GtkButton *button,
+                      gpointer user_data)
+{
+       organigramma_struttura_indirizzo_salva ((OrganigrammaStrutturaIndirizzo *)user_data, TRUE);
 }
index d5204145fbc5320a7312ad80979603611ccb9e73..c05a8e4533182eb9d4102268a787bf654dfbe831 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2010-2012 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2013 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  *
  */
 
+#ifdef HAVE_CONFIG_H
+       #include <config.h>
+#endif
+
 #include <libautoz/autoz.h>
 #include <libgtkform/form.h>
 #include <libgtkform/fielddatetime.h>
@@ -28,7 +32,7 @@ static void organigramma_tipo_nodo_class_init (OrganigrammaTipoNodoClass *klass)
 static void organigramma_tipo_nodo_init (OrganigrammaTipoNodo *organigramma_tipo_nodo);
 
 static void organigramma_tipo_nodo_carica (OrganigrammaTipoNodo *organigramma_tipo_nodo);
-static void organigramma_tipo_nodo_salva (OrganigrammaTipoNodo *organigramma_tipo_nodo);
+static void organigramma_tipo_nodo_salva (OrganigrammaTipoNodo *organigramma_tipo_nodo, gboolean chiudi);
 
 static gboolean organigramma_tipo_nodo_conferma_chiusura (OrganigrammaTipoNodo *organigramma_tipo_nodo);
 
@@ -49,6 +53,8 @@ static void organigramma_tipo_nodo_on_btn_annulla_clicked (GtkButton *button,
                                     gpointer user_data);
 static void organigramma_tipo_nodo_on_btn_salva_clicked (GtkButton *button,
                                   gpointer user_data);
+static void organigramma_tipo_nodo_on_btn_salvaechiudi_clicked (GtkButton *button,
+                                  gpointer user_data);
 
 #define ORGANIGRAMMA_TIPO_NODO_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_ORGANIGRAMMA_TIPO_NODO, OrganigrammaTipoNodoPrivate))
 
@@ -145,12 +151,14 @@ OrganigrammaTipoNodo
                                                      NULL);
 
        g_signal_connect (priv->w,
-                         "delete-event", G_CALLBACK (organigramma_tipo_nodo_on_w_organigramma_tipo_nodo_delete_event), (gpointer *)a);
+                         "delete-event", G_CALLBACK (organigramma_tipo_nodo_on_w_organigramma_tipo_nodo_delete_event), (gpointer)a);
 
        g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button8"),
-                         "clicked", G_CALLBACK (organigramma_tipo_nodo_on_btn_annulla_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_tipo_nodo_on_btn_annulla_clicked), (gpointer)a);
        g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button9"),
-                         "clicked", G_CALLBACK (organigramma_tipo_nodo_on_btn_salva_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_tipo_nodo_on_btn_salva_clicked), (gpointer)a);
+       g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button142"),
+                         "clicked", G_CALLBACK (organigramma_tipo_nodo_on_btn_salvaechiudi_clicked), (gpointer)a);
 
        priv->id = id;
 
@@ -170,6 +178,7 @@ OrganigrammaTipoNodo
        if (!autoz_is_allowed (priv->commons->autoz, priv->commons->role_utente, ires1, FALSE))
                {
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button9")), FALSE);
+                       gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button142")), FALSE);
                }
 
        return a;
@@ -200,7 +209,7 @@ organigramma_tipo_nodo_carica (OrganigrammaTipoNodo *organigramma_tipo_nodo)
 }
 
 static void
-organigramma_tipo_nodo_salva (OrganigrammaTipoNodo *organigramma_tipo_nodo)
+organigramma_tipo_nodo_salva (OrganigrammaTipoNodo *organigramma_tipo_nodo, gboolean chiudi)
 {
        gchar *sql;
 
@@ -237,6 +246,12 @@ organigramma_tipo_nodo_salva (OrganigrammaTipoNodo *organigramma_tipo_nodo)
                                               GTK_MESSAGE_INFO,
                                               GTK_BUTTONS_OK,
                                               "Salvataggio eseguito con successo.");
+
+                       if (chiudi)
+                               {
+                                       gtk_widget_destroy (priv->w);
+                                       g_object_unref (organigramma_tipo_nodo);
+                               }
                }
        else
                {
@@ -316,7 +331,6 @@ organigramma_tipo_nodo_on_btn_annulla_clicked (GtkButton *button,
                         gpointer user_data)
 {
        OrganigrammaTipoNodo *organigramma_tipo_nodo = (OrganigrammaTipoNodo *)user_data;
-
        OrganigrammaTipoNodoPrivate *priv = ORGANIGRAMMA_TIPO_NODO_GET_PRIVATE (organigramma_tipo_nodo);
 
        if (organigramma_tipo_nodo_conferma_chiusura (organigramma_tipo_nodo)) gtk_widget_destroy (priv->w);
@@ -326,5 +340,12 @@ static void
 organigramma_tipo_nodo_on_btn_salva_clicked (GtkButton *button,
                       gpointer user_data)
 {
-       organigramma_tipo_nodo_salva ((OrganigrammaTipoNodo *)user_data);
+       organigramma_tipo_nodo_salva ((OrganigrammaTipoNodo *)user_data, FALSE);
+}
+
+static void
+organigramma_tipo_nodo_on_btn_salvaechiudi_clicked (GtkButton *button,
+                      gpointer user_data)
+{
+       organigramma_tipo_nodo_salva ((OrganigrammaTipoNodo *)user_data, TRUE);
 }
index 04945c5d96c05b18ae488ab8f7ba39f21daade79..1cd85053fb35c1cc2360861940819c739c36c512 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2010-2012 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2013 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  *
  */
 
+#ifdef HAVE_CONFIG_H
+       #include <config.h>
+#endif
+
 #include <libautoz/autoz.h>
 #include <libgtkform/form.h>
 #include <libgtkform/fielddatetime.h>
@@ -28,7 +32,7 @@ static void organigramma_tipo_prestazione_class_init (OrganigrammaTipoPrestazion
 static void organigramma_tipo_prestazione_init (OrganigrammaTipoPrestazione *tipo_prestazione);
 
 static void organigramma_tipo_prestazione_carica (OrganigrammaTipoPrestazione *tipo_prestazione);
-static void organigramma_tipo_prestazione_salva (OrganigrammaTipoPrestazione *tipo_prestazione);
+static void organigramma_tipo_prestazione_salva (OrganigrammaTipoPrestazione *tipo_prestazione, gboolean chiudi);
 
 static gboolean organigramma_tipo_prestazione_conferma_chiusura (OrganigrammaTipoPrestazione *tipo_prestazione);
 
@@ -49,6 +53,8 @@ static void organigramma_tipo_prestazione_on_btn_annulla_clicked (GtkButton *but
                                     gpointer user_data);
 static void organigramma_tipo_prestazione_on_btn_salva_clicked (GtkButton *button,
                                   gpointer user_data);
+static void organigramma_tipo_prestazione_on_btn_salvaechiudi_clicked (GtkButton *button,
+                                  gpointer user_data);
 
 #define ORGANIGRAMMA_TIPO_PRESTAZIONE_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_ORGANIGRAMMA_TIPO_PRESTAZIONE, OrganigrammaTipoPrestazionePrivate))
 
@@ -145,12 +151,14 @@ OrganigrammaTipoPrestazione
                                                      NULL);
 
        g_signal_connect (priv->w,
-                         "delete-event", G_CALLBACK (organigramma_tipo_prestazione_on_w_organigramma_tipo_prestazione_delete_event), (gpointer *)a);
+                         "delete-event", G_CALLBACK (organigramma_tipo_prestazione_on_w_organigramma_tipo_prestazione_delete_event), (gpointer)a);
 
        g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button128"),
-                         "clicked", G_CALLBACK (organigramma_tipo_prestazione_on_btn_annulla_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_tipo_prestazione_on_btn_annulla_clicked), (gpointer)a);
        g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button129"),
-                         "clicked", G_CALLBACK (organigramma_tipo_prestazione_on_btn_salva_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_tipo_prestazione_on_btn_salva_clicked), (gpointer)a);
+       g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button143"),
+                         "clicked", G_CALLBACK (organigramma_tipo_prestazione_on_btn_salvaechiudi_clicked), (gpointer)a);
 
        priv->id = id;
 
@@ -170,6 +178,7 @@ OrganigrammaTipoPrestazione
        if (!autoz_is_allowed (priv->commons->autoz, priv->commons->role_utente, ires1, FALSE))
                {
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button129")), FALSE);
+                       gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button143")), FALSE);
                }
 
        return a;
@@ -200,7 +209,7 @@ organigramma_tipo_prestazione_carica (OrganigrammaTipoPrestazione *tipo_prestazi
 }
 
 static void
-organigramma_tipo_prestazione_salva (OrganigrammaTipoPrestazione *tipo_prestazione)
+organigramma_tipo_prestazione_salva (OrganigrammaTipoPrestazione *tipo_prestazione, gboolean chiudi)
 {
        gchar *sql;
 
@@ -237,6 +246,12 @@ organigramma_tipo_prestazione_salva (OrganigrammaTipoPrestazione *tipo_prestazio
                                               GTK_MESSAGE_INFO,
                                               GTK_BUTTONS_OK,
                                               "Salvataggio eseguito con successo.");
+
+                       if (chiudi)
+                               {
+                                       gtk_widget_destroy (priv->w);
+                                       g_object_unref (tipo_prestazione);
+                               }
                }
        else
                {
@@ -326,5 +341,12 @@ static void
 organigramma_tipo_prestazione_on_btn_salva_clicked (GtkButton *button,
                       gpointer user_data)
 {
-       organigramma_tipo_prestazione_salva ((OrganigrammaTipoPrestazione *)user_data);
+       organigramma_tipo_prestazione_salva ((OrganigrammaTipoPrestazione *)user_data, FALSE);
+}
+
+static void
+organigramma_tipo_prestazione_on_btn_salvaechiudi_clicked (GtkButton *button,
+                      gpointer user_data)
+{
+       organigramma_tipo_prestazione_salva ((OrganigrammaTipoPrestazione *)user_data, TRUE);
 }
index cf44dc063fc0ed9c0e547c353434205074adc289..4e76a126bad32b7f989c54f5b29942bdc1f232dc 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2010-2012 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2013 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  *
  */
 
+#ifdef HAVE_CONFIG_H
+       #include <config.h>
+#endif
+
 #include <libautoz/autoz.h>
 #include <libgtkform/form.h>
 #include <libsolipa/utils.h>
@@ -27,7 +31,7 @@ static void organigramma_tipo_rapporto_lavoro_class_init (OrganigrammaTipoRappor
 static void organigramma_tipo_rapporto_lavoro_init (OrganigrammaTipoRapportoLavoro *tipo_rapporto_lavoro);
 
 static void organigramma_tipo_rapporto_lavoro_carica (OrganigrammaTipoRapportoLavoro *tipo_rapporto_lavoro);
-static void organigramma_tipo_rapporto_lavoro_salva (OrganigrammaTipoRapportoLavoro *tipo_rapporto_lavoro);
+static void organigramma_tipo_rapporto_lavoro_salva (OrganigrammaTipoRapportoLavoro *tipo_rapporto_lavoro, gboolean chiudi);
 
 static gboolean organigramma_tipo_rapporto_lavoro_conferma_chiusura (OrganigrammaTipoRapportoLavoro *tipo_rapporto_lavoro);
 
@@ -48,6 +52,8 @@ static void organigramma_tipo_rapporto_lavoro_on_btn_annulla_clicked (GtkButton
                                     gpointer user_data);
 static void organigramma_tipo_rapporto_lavoro_on_btn_salva_clicked (GtkButton *button,
                                   gpointer user_data);
+static void organigramma_tipo_rapporto_lavoro_on_btn_salvaechiudi_clicked (GtkButton *button,
+                                  gpointer user_data);
 
 #define ORGANIGRAMMA_TIPO_RAPPORTO_LAVORO_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_ORGANIGRAMMA_TIPO_RAPPORTO_LAVORO, OrganigrammaTipoRapportoLavoroPrivate))
 
@@ -144,12 +150,14 @@ OrganigrammaTipoRapportoLavoro
                                                      NULL);
 
        g_signal_connect (priv->w,
-                         "delete-event", G_CALLBACK (organigramma_tipo_rapporto_lavoro_on_w_organigramma_tipo_rapporto_lavoro_delete_event), (gpointer *)a);
+                         "delete-event", G_CALLBACK (organigramma_tipo_rapporto_lavoro_on_w_organigramma_tipo_rapporto_lavoro_delete_event), (gpointer)a);
 
        g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button114"),
-                         "clicked", G_CALLBACK (organigramma_tipo_rapporto_lavoro_on_btn_annulla_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_tipo_rapporto_lavoro_on_btn_annulla_clicked), (gpointer)a);
        g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button115"),
-                         "clicked", G_CALLBACK (organigramma_tipo_rapporto_lavoro_on_btn_salva_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_tipo_rapporto_lavoro_on_btn_salva_clicked), (gpointer)a);
+       g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button144"),
+                         "clicked", G_CALLBACK (organigramma_tipo_rapporto_lavoro_on_btn_salvaechiudi_clicked), (gpointer)a);
 
        priv->id = id;
 
@@ -169,6 +177,7 @@ OrganigrammaTipoRapportoLavoro
        if (!autoz_is_allowed (priv->commons->autoz, priv->commons->role_utente, ires1, FALSE))
                {
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button115")), FALSE);
+                       gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button144")), FALSE);
                }
 
        return a;
@@ -197,7 +206,7 @@ organigramma_tipo_rapporto_lavoro_carica (OrganigrammaTipoRapportoLavoro *tipo_r
 }
 
 static void
-organigramma_tipo_rapporto_lavoro_salva (OrganigrammaTipoRapportoLavoro *tipo_rapporto_lavoro)
+organigramma_tipo_rapporto_lavoro_salva (OrganigrammaTipoRapportoLavoro *tipo_rapporto_lavoro, gboolean chiudi)
 {
        gchar *sql;
 
@@ -234,6 +243,12 @@ organigramma_tipo_rapporto_lavoro_salva (OrganigrammaTipoRapportoLavoro *tipo_ra
                                               GTK_MESSAGE_INFO,
                                               GTK_BUTTONS_OK,
                                               "Salvataggio eseguito con successo.");
+
+                       if (chiudi)
+                               {
+                                       gtk_widget_destroy (priv->w);
+                                       g_object_unref (tipo_rapporto_lavoro);
+                               }
                }
        else
                {
@@ -323,5 +338,12 @@ static void
 organigramma_tipo_rapporto_lavoro_on_btn_salva_clicked (GtkButton *button,
                       gpointer user_data)
 {
-       organigramma_tipo_rapporto_lavoro_salva ((OrganigrammaTipoRapportoLavoro *)user_data);
+       organigramma_tipo_rapporto_lavoro_salva ((OrganigrammaTipoRapportoLavoro *)user_data, FALSE);
+}
+
+static void
+organigramma_tipo_rapporto_lavoro_on_btn_salvaechiudi_clicked (GtkButton *button,
+                      gpointer user_data)
+{
+       organigramma_tipo_rapporto_lavoro_salva ((OrganigrammaTipoRapportoLavoro *)user_data, TRUE);
 }
index f8f37019406e50e4268b154da967a899291ad02c..39868304c8909f51af3c3912a832de3efbedc7a1 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2010-2012 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2013 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  *
  */
 
+#ifdef HAVE_CONFIG_H
+       #include <config.h>
+#endif
+
 #include <libautoz/autoz.h>
 #include <libgtkform/form.h>
 #include <libsolipa/utils.h>
@@ -27,7 +31,7 @@ static void organigramma_tipo_recapito_class_init (OrganigrammaTipoRecapitoClass
 static void organigramma_tipo_recapito_init (OrganigrammaTipoRecapito *tipo_recapito);
 
 static void organigramma_tipo_recapito_carica (OrganigrammaTipoRecapito *tipo_recapito);
-static void organigramma_tipo_recapito_salva (OrganigrammaTipoRecapito *tipo_recapito);
+static void organigramma_tipo_recapito_salva (OrganigrammaTipoRecapito *tipo_recapito, gboolean chiudi);
 
 static gboolean organigramma_tipo_recapito_conferma_chiusura (OrganigrammaTipoRecapito *tipo_recapito);
 
@@ -48,6 +52,8 @@ static void organigramma_tipo_recapito_on_btn_annulla_clicked (GtkButton *button
                                     gpointer user_data);
 static void organigramma_tipo_recapito_on_btn_salva_clicked (GtkButton *button,
                                   gpointer user_data);
+static void organigramma_tipo_recapito_on_btn_salvaechiudi_clicked (GtkButton *button,
+                                  gpointer user_data);
 
 #define ORGANIGRAMMA_TIPO_RECAPITO_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_ORGANIGRAMMA_TIPO_RECAPITO, OrganigrammaTipoRecapitoPrivate))
 
@@ -144,12 +150,14 @@ OrganigrammaTipoRecapito
                                                      NULL);
 
        g_signal_connect (priv->w,
-                         "delete-event", G_CALLBACK (organigramma_tipo_recapito_on_w_organigramma_tipo_recapito_delete_event), (gpointer *)a);
+                         "delete-event", G_CALLBACK (organigramma_tipo_recapito_on_w_organigramma_tipo_recapito_delete_event), (gpointer)a);
 
        g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button21"),
-                         "clicked", G_CALLBACK (organigramma_tipo_recapito_on_btn_annulla_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_tipo_recapito_on_btn_annulla_clicked), (gpointer)a);
        g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button22"),
-                         "clicked", G_CALLBACK (organigramma_tipo_recapito_on_btn_salva_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_tipo_recapito_on_btn_salva_clicked), (gpointer)a);
+       g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button145"),
+                         "clicked", G_CALLBACK (organigramma_tipo_recapito_on_btn_salvaechiudi_clicked), (gpointer)a);
 
        priv->id = id;
 
@@ -169,6 +177,7 @@ OrganigrammaTipoRecapito
        if (!autoz_is_allowed (priv->commons->autoz, priv->commons->role_utente, ires1, FALSE))
                {
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button22")), FALSE);
+                       gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button145")), FALSE);
                }
 
        return a;
@@ -197,7 +206,7 @@ organigramma_tipo_recapito_carica (OrganigrammaTipoRecapito *tipo_recapito)
 }
 
 static void
-organigramma_tipo_recapito_salva (OrganigrammaTipoRecapito *tipo_recapito)
+organigramma_tipo_recapito_salva (OrganigrammaTipoRecapito *tipo_recapito, gboolean chiudi)
 {
        gchar *sql;
 
@@ -234,6 +243,12 @@ organigramma_tipo_recapito_salva (OrganigrammaTipoRecapito *tipo_recapito)
                                               GTK_MESSAGE_INFO,
                                               GTK_BUTTONS_OK,
                                               "Salvataggio eseguito con successo.");
+
+                       if (chiudi)
+                               {
+                                       gtk_widget_destroy (priv->w);
+                                       g_object_unref (tipo_recapito);
+                               }
                }
        else
                {
@@ -323,5 +338,12 @@ static void
 organigramma_tipo_recapito_on_btn_salva_clicked (GtkButton *button,
                       gpointer user_data)
 {
-       organigramma_tipo_recapito_salva ((OrganigrammaTipoRecapito *)user_data);
+       organigramma_tipo_recapito_salva ((OrganigrammaTipoRecapito *)user_data, FALSE);
+}
+
+static void
+organigramma_tipo_recapito_on_btn_salvaechiudi_clicked (GtkButton *button,
+                      gpointer user_data)
+{
+       organigramma_tipo_recapito_salva ((OrganigrammaTipoRecapito *)user_data, TRUE);
 }
index 069758544b24a3dddd9ea25e4cd78f458a2ea6eb..14ae91926accdee69484a3f86f8b8d602a83b8cd 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2010-2012 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2013 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  *
  */
 
+#ifdef HAVE_CONFIG_H
+       #include <config.h>
+#endif
+
 #include <libautoz/autoz.h>
 #include <libgtkform/form.h>
 #include <libsolipa/utils.h>
@@ -27,7 +31,7 @@ static void organigramma_titolo_class_init (OrganigrammaTitoloClass *klass);
 static void organigramma_titolo_init (OrganigrammaTitolo *titolo);
 
 static void organigramma_titolo_carica (OrganigrammaTitolo *titolo);
-static void organigramma_titolo_salva (OrganigrammaTitolo *titolo);
+static void organigramma_titolo_salva (OrganigrammaTitolo *titolo, gboolean chiudi);
 
 static gboolean organigramma_titolo_conferma_chiusura (OrganigrammaTitolo *titolo);
 
@@ -48,6 +52,8 @@ static void organigramma_titolo_on_btn_annulla_clicked (GtkButton *button,
                                     gpointer user_data);
 static void organigramma_titolo_on_btn_salva_clicked (GtkButton *button,
                                   gpointer user_data);
+static void organigramma_titolo_on_btn_salvaechiudi_clicked (GtkButton *button,
+                                  gpointer user_data);
 
 #define ORGANIGRAMMA_TITOLO_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_ORGANIGRAMMA_TITOLO, OrganigrammaTitoloPrivate))
 
@@ -144,12 +150,14 @@ OrganigrammaTitolo
                                                      NULL);
 
        g_signal_connect (priv->w,
-                         "delete-event", G_CALLBACK (organigramma_titolo_on_w_organigramma_titolo_delete_event), (gpointer *)a);
+                         "delete-event", G_CALLBACK (organigramma_titolo_on_w_organigramma_titolo_delete_event), (gpointer)a);
 
        g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button105"),
-                         "clicked", G_CALLBACK (organigramma_titolo_on_btn_annulla_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_titolo_on_btn_annulla_clicked), (gpointer)a);
        g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button106"),
-                         "clicked", G_CALLBACK (organigramma_titolo_on_btn_salva_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_titolo_on_btn_salva_clicked), (gpointer)a);
+       g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button146"),
+                         "clicked", G_CALLBACK (organigramma_titolo_on_btn_salvaechiudi_clicked), (gpointer)a);
 
        priv->id = id;
 
@@ -169,6 +177,7 @@ OrganigrammaTitolo
        if (!autoz_is_allowed (priv->commons->autoz, priv->commons->role_utente, ires1, FALSE))
                {
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button106")), FALSE);
+                       gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button146")), FALSE);
                }
 
        return a;
@@ -199,7 +208,7 @@ organigramma_titolo_carica (OrganigrammaTitolo *titolo)
 }
 
 static void
-organigramma_titolo_salva (OrganigrammaTitolo *titolo)
+organigramma_titolo_salva (OrganigrammaTitolo *titolo, gboolean chiudi)
 {
        gchar *sql;
 
@@ -236,6 +245,12 @@ organigramma_titolo_salva (OrganigrammaTitolo *titolo)
                                               GTK_MESSAGE_INFO,
                                               GTK_BUTTONS_OK,
                                               "Salvataggio eseguito con successo.");
+
+                       if (chiudi)
+                               {
+                                       gtk_widget_destroy (priv->w);
+                                       g_object_unref (titolo);
+                               }
                }
        else
                {
@@ -325,5 +340,12 @@ static void
 organigramma_titolo_on_btn_salva_clicked (GtkButton *button,
                       gpointer user_data)
 {
-       organigramma_titolo_salva ((OrganigrammaTitolo *)user_data);
+       organigramma_titolo_salva ((OrganigrammaTitolo *)user_data, FALSE);
+}
+
+static void
+organigramma_titolo_on_btn_salvaechiudi_clicked (GtkButton *button,
+                      gpointer user_data)
+{
+       organigramma_titolo_salva ((OrganigrammaTitolo *)user_data, TRUE);
 }
index c59931904b78a17ebb132fb0656746eabb8b3beb..d6cdf42401a6d1a84342044be5e691895e21c6a2 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2010-2012 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2013 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  *
  */
 
+#ifdef HAVE_CONFIG_H
+       #include <config.h>
+#endif
+
 #include <libautoz/autoz.h>
 #include <libgtkform/form.h>
 #include <libsolipa/utils.h>
@@ -32,7 +36,7 @@ static void organigramma_ufficio_class_init (OrganigrammaUfficioClass *klass);
 static void organigramma_ufficio_init (OrganigrammaUfficio *ufficio);
 
 static void organigramma_ufficio_carica (OrganigrammaUfficio *ufficio);
-static void organigramma_ufficio_salva (OrganigrammaUfficio *ufficio);
+static void organigramma_ufficio_salva (OrganigrammaUfficio *ufficio, gboolean chiudi);
 
 static void organigramma_ufficio_carica_nodi (OrganigrammaUfficio *ufficio);
 static void organigramma_ufficio_carica_stanze (OrganigrammaUfficio *ufficio);
@@ -117,6 +121,8 @@ static void organigramma_ufficio_on_btn_annulla_clicked (GtkButton *button,
                                     gpointer user_data);
 static void organigramma_ufficio_on_btn_salva_clicked (GtkButton *button,
                                   gpointer user_data);
+static void organigramma_ufficio_on_btn_salvaechiudi_clicked (GtkButton *button,
+                                  gpointer user_data);
 
 #define ORGANIGRAMMA_UFFICIO_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_ORGANIGRAMMA_UFFICIO, OrganigrammaUfficioPrivate))
 
@@ -309,6 +315,8 @@ OrganigrammaUfficio
                          "clicked", G_CALLBACK (organigramma_ufficio_on_btn_annulla_clicked), (gpointer)a);
        g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button30"),
                          "clicked", G_CALLBACK (organigramma_ufficio_on_btn_salva_clicked), (gpointer)a);
+       g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button151"),
+                         "clicked", G_CALLBACK (organigramma_ufficio_on_btn_salvaechiudi_clicked), (gpointer)a);
 
        gtk_form_clear (priv->form);
 
@@ -340,6 +348,7 @@ OrganigrammaUfficio
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button59")), FALSE);
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button61")), FALSE);
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button30")), FALSE);
+                       gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button151")), FALSE);
                }
 
        return a;
@@ -394,7 +403,7 @@ organigramma_ufficio_carica (OrganigrammaUfficio *ufficio)
 }
 
 static void
-organigramma_ufficio_salva (OrganigrammaUfficio *ufficio)
+organigramma_ufficio_salva (OrganigrammaUfficio *ufficio, gboolean chiudi)
 {
        gchar *sql;
 
@@ -432,6 +441,12 @@ organigramma_ufficio_salva (OrganigrammaUfficio *ufficio)
                                               GTK_MESSAGE_INFO,
                                               GTK_BUTTONS_OK,
                                               "Salvataggio eseguito con successo.");
+
+                       if (chiudi)
+                               {
+                                       gtk_widget_destroy (priv->w);
+                                       g_object_unref (ufficio);
+                               }
                }
        else
                {
@@ -1190,5 +1205,12 @@ static void
 organigramma_ufficio_on_btn_salva_clicked (GtkButton *button,
                       gpointer user_data)
 {
-       organigramma_ufficio_salva ((OrganigrammaUfficio *)user_data);
+       organigramma_ufficio_salva ((OrganigrammaUfficio *)user_data, FALSE);
+}
+
+static void
+organigramma_ufficio_on_btn_salvaechiudi_clicked (GtkButton *button,
+                      gpointer user_data)
+{
+       organigramma_ufficio_salva ((OrganigrammaUfficio *)user_data, TRUE);
 }
index e6c01b0ba2493a608c32cd42f32907af1a8e8585..fe4434b57c7090290ef1c50d196b53fe3fa5eead 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2009-2012 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2009-2013 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -32,15 +32,11 @@ static void organigramma_ufficio_nodo_class_init (OrganigrammaUfficioNodoClass *
 static void organigramma_ufficio_nodo_init (OrganigrammaUfficioNodo *organigramma_ufficio_nodo);
 
 static void organigramma_ufficio_nodo_carica (OrganigrammaUfficioNodo *organigramma_ufficio_nodo);
-static void organigramma_ufficio_nodo_salva (OrganigrammaUfficioNodo *organigramma_ufficio_nodo);
+static void organigramma_ufficio_nodo_salva (OrganigrammaUfficioNodo *organigramma_ufficio_nodo, gboolean chiudi);
 
-static void organigramma_ufficio_nodo_carica_indirizzo (OrganigrammaUfficioNodo *indirizzo);
 
 static gboolean organigramma_ufficio_nodo_conferma_chiusura (OrganigrammaUfficioNodo *organigramma_ufficio_nodo);
 
-static void indirizzo_on_nodo_selezionato (gpointer instance,
-                                          guint id, gpointer user_data);
-
 static void organigramma_ufficio_nodo_set_property (GObject *object,
                                      guint property_id,
                                      const GValue *value,
@@ -60,6 +56,8 @@ static void organigramma_ufficio_nodo_on_btn_annulla_clicked (GtkButton *button,
                                     gpointer user_data);
 static void organigramma_ufficio_nodo_on_btn_salva_clicked (GtkButton *button,
                                   gpointer user_data);
+static void organigramma_ufficio_nodo_on_btn_salvaechiudi_clicked (GtkButton *button,
+                                  gpointer user_data);
 
 
 #define ORGANIGRAMMA_UFFICIO_NODO_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_ORGANIGRAMMA_UFFICIO_NODO, OrganigrammaUfficioNodoPrivate))
@@ -172,6 +170,8 @@ OrganigrammaUfficioNodo
                          "clicked", G_CALLBACK (organigramma_ufficio_nodo_on_btn_annulla_clicked), (gpointer)a);
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button46")),
                          "clicked", G_CALLBACK (organigramma_ufficio_nodo_on_btn_salva_clicked), (gpointer)a);
+       g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button154")),
+                         "clicked", G_CALLBACK (organigramma_ufficio_nodo_on_btn_salvaechiudi_clicked), (gpointer)a);
 
        priv->id = id;
        if (priv->id == 0)
@@ -192,6 +192,7 @@ OrganigrammaUfficioNodo
        if (!autoz_is_allowed (priv->commons->autoz, priv->commons->role_utente, ires1, FALSE))
                {
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button46")), FALSE);
+                       gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button154")), FALSE);
                }
 
        return a;
@@ -225,7 +226,7 @@ organigramma_ufficio_nodo_carica (OrganigrammaUfficioNodo *organigramma_ufficio_
 }
 
 static void
-organigramma_ufficio_nodo_salva (OrganigrammaUfficioNodo *organigramma_ufficio_nodo)
+organigramma_ufficio_nodo_salva (OrganigrammaUfficioNodo *organigramma_ufficio_nodo, gboolean chiudi)
 {
        gchar *sql;
 
@@ -262,6 +263,12 @@ organigramma_ufficio_nodo_salva (OrganigrammaUfficioNodo *organigramma_ufficio_n
                                               GTK_MESSAGE_INFO,
                                               GTK_BUTTONS_OK,
                                               "Salvataggio eseguito con successo.");
+
+                       if (chiudi)
+                               {
+                                       gtk_widget_destroy (priv->w);
+                                       g_object_unref (organigramma_ufficio_nodo);
+                               }
                }
        else
                {
@@ -375,5 +382,12 @@ static void
 organigramma_ufficio_nodo_on_btn_salva_clicked (GtkButton *button,
                       gpointer user_data)
 {
-       organigramma_ufficio_nodo_salva ((OrganigrammaUfficioNodo *)user_data);
+       organigramma_ufficio_nodo_salva ((OrganigrammaUfficioNodo *)user_data, FALSE);
+}
+
+static void
+organigramma_ufficio_nodo_on_btn_salvaechiudi_clicked (GtkButton *button,
+                      gpointer user_data)
+{
+       organigramma_ufficio_nodo_salva ((OrganigrammaUfficioNodo *)user_data, TRUE);
 }
index 1971d873b9414c69b36fe69e5fb0eb94db4212cc..e47fcf2484a4a8379c53e3811ae52943a66ea723 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2009-2012 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2009-2013 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -31,7 +31,7 @@ static void organigramma_ufficio_orario_class_init (OrganigrammaUfficioOrarioCla
 static void organigramma_ufficio_orario_init (OrganigrammaUfficioOrario *organigramma_ufficio_orario);
 
 static void organigramma_ufficio_orario_carica (OrganigrammaUfficioOrario *organigramma_ufficio_orario);
-static void organigramma_ufficio_orario_salva (OrganigrammaUfficioOrario *organigramma_ufficio_orario);
+static void organigramma_ufficio_orario_salva (OrganigrammaUfficioOrario *organigramma_ufficio_orario, gboolean chiudi);
 
 static gboolean organigramma_ufficio_orario_conferma_chiusura (OrganigrammaUfficioOrario *organigramma_ufficio_orario);
 
@@ -52,6 +52,8 @@ static void organigramma_ufficio_orario_on_btn_annulla_clicked (GtkButton *butto
                                     gpointer user_data);
 static void organigramma_ufficio_orario_on_btn_salva_clicked (GtkButton *button,
                                   gpointer user_data);
+static void organigramma_ufficio_orario_on_btn_salvaechiudi_clicked (GtkButton *button,
+                                  gpointer user_data);
 
 
 #define ORGANIGRAMMA_UFFICIO_ORARIO_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_ORGANIGRAMMA_UFFICIO_ORARIO, OrganigrammaUfficioOrarioPrivate))
@@ -153,12 +155,14 @@ OrganigrammaUfficioOrario
                                                      NULL);
 
        g_signal_connect (priv->w,
-                         "delete-event", G_CALLBACK (organigramma_ufficio_orario_on_w_organigramma_ufficio_orario_delete_event), (gpointer *)a);
+                         "delete-event", G_CALLBACK (organigramma_ufficio_orario_on_w_organigramma_ufficio_orario_delete_event), (gpointer)a);
 
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button57")),
-                         "clicked", G_CALLBACK (organigramma_ufficio_orario_on_btn_annulla_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_ufficio_orario_on_btn_annulla_clicked), (gpointer)a);
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button58")),
-                         "clicked", G_CALLBACK (organigramma_ufficio_orario_on_btn_salva_clicked), (gpointer *)a);
+                         "clicked", G_CALLBACK (organigramma_ufficio_orario_on_btn_salva_clicked), (gpointer)a);
+       g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button155")),
+                         "clicked", G_CALLBACK (organigramma_ufficio_orario_on_btn_salvaechiudi_clicked), (gpointer)a);
 
        priv->id = id;
        if (priv->id == 0)
@@ -179,6 +183,7 @@ OrganigrammaUfficioOrario
        if (!autoz_is_allowed (priv->commons->autoz, priv->commons->role_utente, ires1, FALSE))
                {
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button58")), FALSE);
+                       gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button155")), FALSE);
                }
 
        return a;
@@ -212,7 +217,7 @@ organigramma_ufficio_orario_carica (OrganigrammaUfficioOrario *organigramma_uffi
 }
 
 static void
-organigramma_ufficio_orario_salva (OrganigrammaUfficioOrario *organigramma_ufficio_orario)
+organigramma_ufficio_orario_salva (OrganigrammaUfficioOrario *organigramma_ufficio_orario, gboolean chiudi)
 {
        gchar *sql;
 
@@ -249,6 +254,12 @@ organigramma_ufficio_orario_salva (OrganigrammaUfficioOrario *organigramma_uffic
                                               GTK_MESSAGE_INFO,
                                               GTK_BUTTONS_OK,
                                               "Salvataggio eseguito con successo.");
+
+                       if (chiudi)
+                               {
+                                       gtk_widget_destroy (priv->w);
+                                       g_object_unref (organigramma_ufficio_orario);
+                               }
                }
        else
                {
@@ -334,5 +345,12 @@ static void
 organigramma_ufficio_orario_on_btn_salva_clicked (GtkButton *button,
                       gpointer user_data)
 {
-       organigramma_ufficio_orario_salva ((OrganigrammaUfficioOrario *)user_data);
+       organigramma_ufficio_orario_salva ((OrganigrammaUfficioOrario *)user_data, FALSE);
+}
+
+static void
+organigramma_ufficio_orario_on_btn_salvaechiudi_clicked (GtkButton *button,
+                      gpointer user_data)
+{
+       organigramma_ufficio_orario_salva ((OrganigrammaUfficioOrario *)user_data, TRUE);
 }
index 1de68ad59a4a4a5b026fb2929d4d9ed1911883ac..ecb1bd92e3c9d207bbd43ff70c717b0e854bc11f 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2009-2012 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2009-2013 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -31,7 +31,7 @@ static void organigramma_ufficio_recapito_class_init (OrganigrammaUfficioRecapit
 static void organigramma_ufficio_recapito_init (OrganigrammaUfficioRecapito *organigramma_ufficio_recapito);
 
 static void organigramma_ufficio_recapito_carica (OrganigrammaUfficioRecapito *organigramma_ufficio_recapito);
-static void organigramma_ufficio_recapito_salva (OrganigrammaUfficioRecapito *organigramma_ufficio_recapito);
+static void organigramma_ufficio_recapito_salva (OrganigrammaUfficioRecapito *organigramma_ufficio_recapito, gboolean chiudi);
 
 static gboolean organigramma_ufficio_recapito_conferma_chiusura (OrganigrammaUfficioRecapito *organigramma_ufficio_recapito);
 
@@ -52,6 +52,8 @@ static void organigramma_ufficio_recapito_on_btn_annulla_clicked (GtkButton *but
                                     gpointer user_data);
 static void organigramma_ufficio_recapito_on_btn_salva_clicked (GtkButton *button,
                                   gpointer user_data);
+static void organigramma_ufficio_recapito_on_btn_salvaechiudi_clicked (GtkButton *button,
+                                  gpointer user_data);
 
 
 #define ORGANIGRAMMA_UFFICIO_RECAPITO_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_ORGANIGRAMMA_UFFICIO_RECAPITO, OrganigrammaUfficioRecapitoPrivate))
@@ -159,6 +161,8 @@ OrganigrammaUfficioRecapito
                          "clicked", G_CALLBACK (organigramma_ufficio_recapito_on_btn_annulla_clicked), (gpointer)a);
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button49")),
                          "clicked", G_CALLBACK (organigramma_ufficio_recapito_on_btn_salva_clicked), (gpointer)a);
+       g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button156")),
+                         "clicked", G_CALLBACK (organigramma_ufficio_recapito_on_btn_salvaechiudi_clicked), (gpointer)a);
 
        priv->id = id;
        if (priv->id == 0)
@@ -179,6 +183,7 @@ OrganigrammaUfficioRecapito
        if (!autoz_is_allowed (priv->commons->autoz, priv->commons->role_utente, ires1, FALSE))
                {
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button49")), FALSE);
+                       gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button156")), FALSE);
                }
 
        return a;
@@ -212,7 +217,7 @@ organigramma_ufficio_recapito_carica (OrganigrammaUfficioRecapito *organigramma_
 }
 
 static void
-organigramma_ufficio_recapito_salva (OrganigrammaUfficioRecapito *organigramma_ufficio_recapito)
+organigramma_ufficio_recapito_salva (OrganigrammaUfficioRecapito *organigramma_ufficio_recapito, gboolean chiudi)
 {
        gchar *sql;
 
@@ -249,6 +254,12 @@ organigramma_ufficio_recapito_salva (OrganigrammaUfficioRecapito *organigramma_u
                                               GTK_MESSAGE_INFO,
                                               GTK_BUTTONS_OK,
                                               "Salvataggio eseguito con successo.");
+
+                       if (chiudi)
+                               {
+                                       gtk_widget_destroy (priv->w);
+                                       g_object_unref (organigramma_ufficio_recapito);
+                               }
                }
        else
                {
@@ -334,5 +345,12 @@ static void
 organigramma_ufficio_recapito_on_btn_salva_clicked (GtkButton *button,
                       gpointer user_data)
 {
-       organigramma_ufficio_recapito_salva ((OrganigrammaUfficioRecapito *)user_data);
+       organigramma_ufficio_recapito_salva ((OrganigrammaUfficioRecapito *)user_data, FALSE);
+}
+
+static void
+organigramma_ufficio_recapito_on_btn_salvaechiudi_clicked (GtkButton *button,
+                      gpointer user_data)
+{
+       organigramma_ufficio_recapito_salva ((OrganigrammaUfficioRecapito *)user_data, TRUE);
 }
index 5dfa0087989506aca80a7366dab9779b322ec948..f9486f088549d9a305daef5e7bab0d74e0342ce0 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2009-2012 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2009-2013 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -31,7 +31,7 @@ static void organigramma_ufficio_stanza_class_init (OrganigrammaUfficioStanzaCla
 static void organigramma_ufficio_stanza_init (OrganigrammaUfficioStanza *organigramma_ufficio_stanza);
 
 static void organigramma_ufficio_stanza_carica (OrganigrammaUfficioStanza *organigramma_ufficio_stanza);
-static void organigramma_ufficio_stanza_salva (OrganigrammaUfficioStanza *organigramma_ufficio_stanza);
+static void organigramma_ufficio_stanza_salva (OrganigrammaUfficioStanza *organigramma_ufficio_stanza, gboolean chiudi);
 
 static gboolean organigramma_ufficio_stanza_conferma_chiusura (OrganigrammaUfficioStanza *organigramma_ufficio_stanza);
 
@@ -52,6 +52,8 @@ static void organigramma_ufficio_stanza_on_btn_annulla_clicked (GtkButton *butto
                                     gpointer user_data);
 static void organigramma_ufficio_stanza_on_btn_salva_clicked (GtkButton *button,
                                   gpointer user_data);
+static void organigramma_ufficio_stanza_on_btn_salvaechiudi_clicked (GtkButton *button,
+                                  gpointer user_data);
 
 
 #define ORGANIGRAMMA_UFFICIO_STANZA_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_ORGANIGRAMMA_UFFICIO_STANZA, OrganigrammaUfficioStanzaPrivate))
@@ -159,6 +161,8 @@ OrganigrammaUfficioStanza
                          "clicked", G_CALLBACK (organigramma_ufficio_stanza_on_btn_annulla_clicked), (gpointer)a);
        g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button139")),
                          "clicked", G_CALLBACK (organigramma_ufficio_stanza_on_btn_salva_clicked), (gpointer)a);
+       g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button157")),
+                         "clicked", G_CALLBACK (organigramma_ufficio_stanza_on_btn_salvaechiudi_clicked), (gpointer)a);
 
        priv->id = id;
        if (priv->id == 0)
@@ -179,6 +183,7 @@ OrganigrammaUfficioStanza
        if (!autoz_is_allowed (priv->commons->autoz, priv->commons->role_utente, ires1, FALSE))
                {
                        gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button139")), FALSE);
+                       gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (commons->gtkbuilder, "button157")), FALSE);
                }
 
        return a;
@@ -212,7 +217,7 @@ organigramma_ufficio_stanza_carica (OrganigrammaUfficioStanza *organigramma_uffi
 }
 
 static void
-organigramma_ufficio_stanza_salva (OrganigrammaUfficioStanza *organigramma_ufficio_stanza)
+organigramma_ufficio_stanza_salva (OrganigrammaUfficioStanza *organigramma_ufficio_stanza, gboolean chiudi)
 {
        gchar *sql;
 
@@ -249,6 +254,12 @@ organigramma_ufficio_stanza_salva (OrganigrammaUfficioStanza *organigramma_uffic
                                               GTK_MESSAGE_INFO,
                                               GTK_BUTTONS_OK,
                                               "Salvataggio eseguito con successo.");
+
+                       if (chiudi)
+                               {
+                                       gtk_widget_destroy (priv->w);
+                                       g_object_unref (organigramma_ufficio_stanza);
+                               }
                }
        else
                {
@@ -334,5 +345,12 @@ static void
 organigramma_ufficio_stanza_on_btn_salva_clicked (GtkButton *button,
                       gpointer user_data)
 {
-       organigramma_ufficio_stanza_salva ((OrganigrammaUfficioStanza *)user_data);
+       organigramma_ufficio_stanza_salva ((OrganigrammaUfficioStanza *)user_data, FALSE);
+}
+
+static void
+organigramma_ufficio_stanza_on_btn_salvaechiudi_clicked (GtkButton *button,
+                      gpointer user_data)
+{
+       organigramma_ufficio_stanza_salva ((OrganigrammaUfficioStanza *)user_data, TRUE);
 }