From 04f2728d9fe447b5ec486d406e1a5625ef627a0f Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Thu, 21 Oct 2010 18:07:33 +0200 Subject: [PATCH] Correzioni. --- src/persona.c | 3 +++ src/struttura.c | 3 +++ src/ufficio.c | 3 +++ 3 files changed, 9 insertions(+) diff --git a/src/persona.c b/src/persona.c index 8971d0e..f3fc2b9 100644 --- a/src/persona.c +++ b/src/persona.c @@ -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), diff --git a/src/struttura.c b/src/struttura.c index eb7cfcf..59b2074 100644 --- a/src/struttura.c +++ b/src/struttura.c @@ -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), diff --git a/src/ufficio.c b/src/ufficio.c index 085a712..6202de5 100644 --- a/src/ufficio.c +++ b/src/ufficio.c @@ -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), -- 2.49.0