<property name="top_attach">9</property>
</packing>
</child>
- <child>
- <object class="GtkComboBox" id="combobox8">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="hexpand">True</property>
- <child>
- <object class="GtkCellRendererText" id="cellrenderertext32"/>
- <attributes>
- <attribute name="text">1</attribute>
- </attributes>
- </child>
- </object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">1</property>
- </packing>
- </child>
<child>
<object class="GtkComboBox" id="combobox9">
<property name="visible">True</property>
<property name="top_attach">9</property>
</packing>
</child>
+ <child>
+ <object class="GtkFormDecoder" id="gtkformdecoder2">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">1</property>
+ </packing>
+ </child>
</object>
<packing>
<property name="expand">True</property>
#include <libzakautho/autoz.h>
#include <libgtkform/form.h>
+#include <libgtkformui/gtkformdecoder.h>
#include <libsolipa/utils.h>
#include "personaincarico.h"
#include "nodi.h"
+#include "tipirapportolavoro.h"
static void organigramma_persona_incarico_class_init (OrganigrammaPersonaIncaricoClass *klass);
static void organigramma_persona_incarico_init (OrganigrammaPersonaIncarico *organigramma_persona_incarico);
GdkEvent *event,
gpointer user_data);
+static void organigramma_persona_incarico_on_tipo_rapporto_lavoro_selezionato (gpointer instance, guint id, gpointer user_data);
+
+static void organigramma_persona_incarico_on_btn_ricerca_tipo_rapporto_lavoro_clicked (GtkButton *button,
+ gpointer user_data);
+
static void organigramma_persona_incarico_on_btn_annulla_clicked (GtkButton *button,
gpointer user_data);
static void organigramma_persona_incarico_on_btn_salva_clicked (GtkButton *button,
gtk_builder_add_objects_from_file (priv->commons->gtkbuilder, priv->commons->guifile,
g_strsplit (
- "lstore_tipi_rapporto_lavoro"
- "|lstore_posizioni_economiche"
+ "lstore_posizioni_economiche"
"|lstore_tipi_prestazione"
"|lstore_profili_professionali"
"|w_persona_incarico", "|", -1),
g_signal_connect (priv->w,
"delete-event", G_CALLBACK (organigramma_persona_incarico_on_w_organigramma_persona_incarico_delete_event), (gpointer)a);
+ g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "gtkformdecoder2"),
+ "btn-browse-clicked", G_CALLBACK (organigramma_persona_incarico_on_btn_ricerca_tipo_rapporto_lavoro_clicked), (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);
g_signal_connect (G_OBJECT (gtk_builder_get_object (priv->commons->gtkbuilder, "button99")),
return !organigramma_persona_incarico_conferma_chiusura ((OrganigrammaPersonaIncarico *)user_data);
}
+static void
+organigramma_persona_incarico_on_tipo_rapporto_lavoro_selezionato (gpointer instance, guint id, gpointer user_data)
+{
+ OrganigrammaPersonaIncarico *ia = (OrganigrammaPersonaIncarico *)user_data;
+
+ OrganigrammaPersonaIncaricoPrivate *priv = ORGANIGRAMMA_PERSONA_INCARICO_GET_PRIVATE (ia);
+
+ gtk_form_widget_set_value_stringify (gtk_form_get_form_widget_from_name (priv->form, "gtkformdecoder2"),
+ g_strdup_printf ("%d", id));
+}
+
+static void
+organigramma_persona_incarico_on_btn_ricerca_tipo_rapporto_lavoro_clicked (GtkButton *button,
+ gpointer user_data)
+{
+ GtkWidget *w;
+
+ OrganigrammaPersonaIncarico *ia = (OrganigrammaPersonaIncarico *)user_data;
+ OrganigrammaPersonaIncaricoPrivate *priv = ORGANIGRAMMA_PERSONA_INCARICO_GET_PRIVATE (ia);
+
+ OrganigrammaTipiRapportoLavoro *c = organigramma_tipi_rapporto_lavoro_new (priv->commons, TRUE);
+
+ g_signal_connect (G_OBJECT (c), "selezionato",
+ G_CALLBACK (organigramma_persona_incarico_on_tipo_rapporto_lavoro_selezionato), user_data);
+
+ w = organigramma_tipi_rapporto_lavoro_get_widget (c);
+ gtk_window_set_transient_for (GTK_WINDOW (w), GTK_WINDOW (priv->w));
+ gtk_widget_show (w);
+}
+
static void
organigramma_persona_incarico_on_btn_annulla_clicked (GtkButton *button,
gpointer user_data)