]> saetta.ns0.it Git - solipa/organigramma/commitdiff
Correzioni.
authorAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Thu, 21 Oct 2010 16:07:33 +0000 (18:07 +0200)
committerAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Thu, 21 Oct 2010 16:07:33 +0000 (18:07 +0200)
src/persona.c
src/struttura.c
src/ufficio.c

index 8971d0e7dfad84086a59b993d5fc108daba0bea1..f3fc2b91db372854695b09d15cc13e88ee1d72ef 100644 (file)
@@ -392,6 +392,8 @@ Persona
                        gtk_label_set_text (GTK_LABEL (priv->objects[LBL_ID]), "");
 
                        gtk_form_set_as_origin (priv->form);
+
+                       gtk_form_set_sensitive_by_name (priv->form, FALSE, "notebook1", NULL);
                }
        else
                {
@@ -469,6 +471,7 @@ persona_salva (Persona *persona)
                        if (priv->id == 0)
                                {
                                        priv->id = strtol (gtk_label_get_text (GTK_LABEL (priv->objects[LBL_ID])), NULL, 10);
+                                       gtk_form_set_sensitive_by_name (priv->form, TRUE, "notebook1", NULL);
                                }
 
                        dialog = gtk_message_dialog_new (GTK_WINDOW (priv->w),
index eb7cfcf5b5f26c9a9608d0fc01356a0696410f1b..59b2074cd4eb303135354849edb261d5e191bad7 100644 (file)
@@ -195,6 +195,8 @@ Struttura
                        gtk_label_set_text (GTK_LABEL (priv->objects[LBL_ID]), "");
 
                        gtk_form_set_as_origin (priv->form);
+
+                       gtk_form_set_sensitive_by_name (priv->form, FALSE, "frame3", NULL);
                }
        else
                {
@@ -267,6 +269,7 @@ struttura_salva (Struttura *struttura)
                        if (priv->id == 0)
                                {
                                        priv->id = strtol (gtk_label_get_text (GTK_LABEL (priv->objects[LBL_ID])), NULL, 10);
+                                       gtk_form_set_sensitive_by_name (priv->form, TRUE, "frame3", NULL);
                                }
 
                        dialog = gtk_message_dialog_new (GTK_WINDOW (priv->w),
index 085a7121b10bb86a6e6cc661f80344827dd77cd5..6202de568f42869b0ceebd0c506bef0e0eec38ac 100644 (file)
@@ -314,6 +314,8 @@ Ufficio
                        gtk_label_set_text (GTK_LABEL (priv->objects[LBL_ID]), "");
 
                        gtk_form_set_as_origin (priv->form);
+
+                       gtk_form_set_sensitive_by_name (priv->form, FALSE, "frame2", "frame12", "frame1", "frame4", NULL);
                }
        else
                {
@@ -389,6 +391,7 @@ ufficio_salva (Ufficio *ufficio)
                        if (priv->id == 0)
                                {
                                        priv->id = strtol (gtk_label_get_text (GTK_LABEL (priv->objects[LBL_ID])), NULL, 10);
+                                       gtk_form_set_sensitive_by_name (priv->form, TRUE, "frame2", "frame12", "frame1", "frame4", NULL);
                                }
 
                        dialog = gtk_message_dialog_new (GTK_WINDOW (priv->w),