Aggiustamenti vari.
</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"/>
</natures>
<filteredResources>
<filter>
- <id>1369207836344</id>
+ <id>1369291081801</id>
<name></name>
<type>30</type>
<matcher>
</matcher>
</filter>
<filter>
- <id>1369207836348</id>
+ <id>1369291081809</id>
<name></name>
<type>22</type>
<matcher>
</matcher>
</filter>
<filter>
- <id>1369207836352</id>
+ <id>1369291081813</id>
<name></name>
<type>22</type>
<matcher>
</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>
</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">
<field type="datetime" name="da_data">
<datetime-type>date</datetime-type>
<display-format>%d/%m/%Y</display-format>
+ <obligatory>t</obligatory>
</field>
</widget>
</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">
</sql>
</on-change>
<field type="integer" name="id_nodi">
+ <obligatory>t</obligatory>
</field>
</widget>
<field type="datetime" name="da_data">
<datetime-type>date</datetime-type>
<display-format>%d/%m/%Y</display-format>
+ <obligatory>t</obligatory>
</field>
</widget>
SELECT id, nome FROM tipi_recapito WHERE status <> '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>
SELECT id, nome FROM tipi_recapito WHERE status <> '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>
</sql>
</on-change>
<field type="integer" name="id_uffici">
+ <obligatory>t</obligatory>
</field>
</widget>
SELECT id, nome FROM tipi_recapito WHERE status <> '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>
</widget>
<widget type="entry" name="entry39" label="label151">
- <field type="text" name="nome" />
+ <field type="text" name="nome">
+ <obligatory>t</obligatory>
+ </field>
</widget>
</gtkform>
</sql>
</on-change>
<field type="integer" name="id_vie">
+ <obligatory>t</obligatory>
</field>
</widget>
<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>
/*
- * 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>
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);
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))
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;
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;
}
static void
-organigramma_nodo_salva (OrganigrammaNodo *nodo)
+organigramma_nodo_salva (OrganigrammaNodo *nodo, gboolean chiudi)
{
gchar *sql;
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
"Salvataggio eseguito con successo.");
+
+ if (chiudi)
+ {
+ gtk_widget_destroy (priv->w);
+ g_object_unref (nodo);
+ }
}
else
{
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);
}
/*
- * 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>
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);
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))
"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);
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;
}
static void
-organigramma_persona_salva (OrganigrammaPersona *persona)
+organigramma_persona_salva (OrganigrammaPersona *persona, gboolean chiudi)
{
gchar *sql;
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
"Salvataggio eseguito con successo.");
+
+ if (chiudi)
+ {
+ gtk_widget_destroy (priv->w);
+ g_object_unref (persona);
+ }
}
else
{
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);
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);
}
/*
- * 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
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);
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))
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)
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;
}
static void
-organigramma_persona_incarico_salva (OrganigrammaPersonaIncarico *organigramma_persona_incarico)
+organigramma_persona_incarico_salva (OrganigrammaPersonaIncarico *organigramma_persona_incarico, gboolean chiudi)
{
gchar *sql;
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
"Salvataggio eseguito con successo.");
+
+ if (chiudi)
+ {
+ gtk_widget_destroy (priv->w);
+ g_object_unref (organigramma_persona_incarico);
+ }
}
else
{
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);
}
/*
- * 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
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);
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))
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)
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;
}
static void
-organigramma_persona_nodo_salva (OrganigrammaPersonaNodo *organigramma_persona_nodo)
+organigramma_persona_nodo_salva (OrganigrammaPersonaNodo *organigramma_persona_nodo, gboolean chiudi)
{
gchar *sql;
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
"Salvataggio eseguito con successo.");
+
+ if (chiudi)
+ {
+ gtk_widget_destroy (priv->w);
+ g_object_unref (organigramma_persona_nodo);
+ }
}
else
{
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);
}
/*
- * 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
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);
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))
"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)
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;
}
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;
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
{
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);
}
/*
- * 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
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);
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))
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)
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;
}
static void
-organigramma_persona_recapito_salva (OrganigrammaPersonaRecapito *organigramma_persona_recapito)
+organigramma_persona_recapito_salva (OrganigrammaPersonaRecapito *organigramma_persona_recapito, gboolean chiudi)
{
gchar *sql;
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
"Salvataggio eseguito con successo.");
+
+ if (chiudi)
+ {
+ gtk_widget_destroy (priv->w);
+ g_object_unref (organigramma_persona_recapito);
+ }
}
else
{
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);
}
/*
- * 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
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);
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))
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)
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;
}
static void
-organigramma_persona_ufficio_salva (OrganigrammaPersonaUfficio *organigramma_persona_ufficio)
+organigramma_persona_ufficio_salva (OrganigrammaPersonaUfficio *organigramma_persona_ufficio, gboolean chiudi)
{
gchar *sql;
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
"Salvataggio eseguito con successo.");
+
+ if (chiudi)
+ {
+ gtk_widget_destroy (priv->w);
+ g_object_unref (organigramma_persona_ufficio);
+ }
}
else
{
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);
}
/*
- * 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
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);
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))
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)
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;
}
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;
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
{
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);
}
/*
- * 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>
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);
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))
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;
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;
}
static void
-organigramma_posizione_economica_salva (OrganigrammaPosizioneEconomica *posizione_economica)
+organigramma_posizione_economica_salva (OrganigrammaPosizioneEconomica *posizione_economica, gboolean chiudi)
{
gchar *sql;
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
"Salvataggio eseguito con successo.");
+
+ if (chiudi)
+ {
+ gtk_widget_destroy (priv->w);
+ g_object_unref (posizione_economica);
+ }
}
else
{
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);
}
/*
- * 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>
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);
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))
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;
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;
}
static void
-organigramma_profilo_professionale_salva (OrganigrammaProfiloProfessionale *profilo_professionale)
+organigramma_profilo_professionale_salva (OrganigrammaProfiloProfessionale *profilo_professionale, gboolean chiudi)
{
gchar *sql;
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
"Salvataggio eseguito con successo.");
+
+ if (chiudi)
+ {
+ gtk_widget_destroy (priv->w);
+ g_object_unref (profilo_professionale);
+ }
}
else
{
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);
}
/*
- * 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>
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);
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))
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);
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;
}
static void
-organigramma_struttura_salva (OrganigrammaStruttura *struttura)
+organigramma_struttura_salva (OrganigrammaStruttura *struttura, gboolean chiudi)
{
gchar *sql;
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
"Salvataggio eseguito con successo.");
+
+ if (chiudi)
+ {
+ gtk_widget_destroy (priv->w);
+ g_object_unref (struttura);
+ }
}
else
{
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);
}
/*
- * 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
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,
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))
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)
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;
}
static void
-organigramma_struttura_indirizzo_salva (OrganigrammaStrutturaIndirizzo *struttura_indirizzo)
+organigramma_struttura_indirizzo_salva (OrganigrammaStrutturaIndirizzo *struttura_indirizzo, gboolean chiudi)
{
gchar *sql;
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
"Salvataggio eseguito con successo.");
+
+ if (chiudi)
+ {
+ gtk_widget_destroy (priv->w);
+ g_object_unref (struttura_indirizzo);
+ }
}
else
{
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);
}
/*
- * 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>
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);
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))
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;
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;
}
static void
-organigramma_tipo_nodo_salva (OrganigrammaTipoNodo *organigramma_tipo_nodo)
+organigramma_tipo_nodo_salva (OrganigrammaTipoNodo *organigramma_tipo_nodo, gboolean chiudi)
{
gchar *sql;
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
"Salvataggio eseguito con successo.");
+
+ if (chiudi)
+ {
+ gtk_widget_destroy (priv->w);
+ g_object_unref (organigramma_tipo_nodo);
+ }
}
else
{
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);
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);
}
/*
- * 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>
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);
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))
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;
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;
}
static void
-organigramma_tipo_prestazione_salva (OrganigrammaTipoPrestazione *tipo_prestazione)
+organigramma_tipo_prestazione_salva (OrganigrammaTipoPrestazione *tipo_prestazione, gboolean chiudi)
{
gchar *sql;
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
"Salvataggio eseguito con successo.");
+
+ if (chiudi)
+ {
+ gtk_widget_destroy (priv->w);
+ g_object_unref (tipo_prestazione);
+ }
}
else
{
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);
}
/*
- * 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>
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);
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))
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;
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;
}
static void
-organigramma_tipo_rapporto_lavoro_salva (OrganigrammaTipoRapportoLavoro *tipo_rapporto_lavoro)
+organigramma_tipo_rapporto_lavoro_salva (OrganigrammaTipoRapportoLavoro *tipo_rapporto_lavoro, gboolean chiudi)
{
gchar *sql;
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
"Salvataggio eseguito con successo.");
+
+ if (chiudi)
+ {
+ gtk_widget_destroy (priv->w);
+ g_object_unref (tipo_rapporto_lavoro);
+ }
}
else
{
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);
}
/*
- * 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>
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);
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))
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;
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;
}
static void
-organigramma_tipo_recapito_salva (OrganigrammaTipoRecapito *tipo_recapito)
+organigramma_tipo_recapito_salva (OrganigrammaTipoRecapito *tipo_recapito, gboolean chiudi)
{
gchar *sql;
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
"Salvataggio eseguito con successo.");
+
+ if (chiudi)
+ {
+ gtk_widget_destroy (priv->w);
+ g_object_unref (tipo_recapito);
+ }
}
else
{
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);
}
/*
- * 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>
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);
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))
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;
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;
}
static void
-organigramma_titolo_salva (OrganigrammaTitolo *titolo)
+organigramma_titolo_salva (OrganigrammaTitolo *titolo, gboolean chiudi)
{
gchar *sql;
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
"Salvataggio eseguito con successo.");
+
+ if (chiudi)
+ {
+ gtk_widget_destroy (priv->w);
+ g_object_unref (titolo);
+ }
}
else
{
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);
}
/*
- * 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>
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);
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))
"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);
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;
}
static void
-organigramma_ufficio_salva (OrganigrammaUfficio *ufficio)
+organigramma_ufficio_salva (OrganigrammaUfficio *ufficio, gboolean chiudi)
{
gchar *sql;
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
"Salvataggio eseguito con successo.");
+
+ if (chiudi)
+ {
+ gtk_widget_destroy (priv->w);
+ g_object_unref (ufficio);
+ }
}
else
{
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);
}
/*
- * 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
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,
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))
"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)
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;
}
static void
-organigramma_ufficio_nodo_salva (OrganigrammaUfficioNodo *organigramma_ufficio_nodo)
+organigramma_ufficio_nodo_salva (OrganigrammaUfficioNodo *organigramma_ufficio_nodo, gboolean chiudi)
{
gchar *sql;
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
"Salvataggio eseguito con successo.");
+
+ if (chiudi)
+ {
+ gtk_widget_destroy (priv->w);
+ g_object_unref (organigramma_ufficio_nodo);
+ }
}
else
{
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);
}
/*
- * 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
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);
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))
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)
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;
}
static void
-organigramma_ufficio_orario_salva (OrganigrammaUfficioOrario *organigramma_ufficio_orario)
+organigramma_ufficio_orario_salva (OrganigrammaUfficioOrario *organigramma_ufficio_orario, gboolean chiudi)
{
gchar *sql;
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
"Salvataggio eseguito con successo.");
+
+ if (chiudi)
+ {
+ gtk_widget_destroy (priv->w);
+ g_object_unref (organigramma_ufficio_orario);
+ }
}
else
{
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);
}
/*
- * 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
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);
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))
"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)
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;
}
static void
-organigramma_ufficio_recapito_salva (OrganigrammaUfficioRecapito *organigramma_ufficio_recapito)
+organigramma_ufficio_recapito_salva (OrganigrammaUfficioRecapito *organigramma_ufficio_recapito, gboolean chiudi)
{
gchar *sql;
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
"Salvataggio eseguito con successo.");
+
+ if (chiudi)
+ {
+ gtk_widget_destroy (priv->w);
+ g_object_unref (organigramma_ufficio_recapito);
+ }
}
else
{
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);
}
/*
- * 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
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);
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))
"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)
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;
}
static void
-organigramma_ufficio_stanza_salva (OrganigrammaUfficioStanza *organigramma_ufficio_stanza)
+organigramma_ufficio_stanza_salva (OrganigrammaUfficioStanza *organigramma_ufficio_stanza, gboolean chiudi)
{
gchar *sql;
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
"Salvataggio eseguito con successo.");
+
+ if (chiudi)
+ {
+ gtk_widget_destroy (priv->w);
+ g_object_unref (organigramma_ufficio_stanza);
+ }
}
else
{
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);
}