From d635f619eea8f81a94f510747197c37017140fb6 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Mon, 26 Dec 2011 10:51:18 +0100 Subject: [PATCH] =?utf8?q?Quando=20il=20pulsante=20salva=20=C3=A8=20disabi?= =?utf8?q?litato=20in=20uscita=20non=20controlla=20i=20cambiamenti=20(clos?= =?utf8?q?es=20#281).?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .anjuta_sym_db.db | Bin 536576 -> 537600 bytes data/territorio/gui/territorio.gui | 25 +++++++++++++++--- src/aggregazioneterritoriale.c | 24 ++++++++---------- src/aggregazioniterritoriali.c | 10 +++++--- src/comune.c | 17 +++++-------- src/provincia.c | 20 +++++++-------- src/regione.c | 14 +++++------ src/stato.c | 16 +++++------- src/tipoaggregazioneterritoriale.c | 26 ++++++++----------- src/via.c | 39 +++++++++++------------------ 10 files changed, 89 insertions(+), 102 deletions(-) diff --git a/.anjuta_sym_db.db b/.anjuta_sym_db.db index 9c64799adf9937c1b552889a20a48fd8bdffbff2..7e782602b818b3caf88d8632279749f20328e59d 100644 GIT binary patch delta 11623 zcmaKS2Vhl2*8iNDJM$i?FTFmJ5LyBW36Ri90)$=?Kza$%%mOJ8iXe~(1cNT^N)8|@ zby1`Q0$hqBD7qABt{v3is_U+<8+Kh+U6lWsdqdIh`+q5O?(}g;icMBfjyi0i|veyBE}e$ixag0 z?NP)=j#d>Z08ln{_Uyv4;@O486DLsv_Ii$7YL*^qX~rK2<7qyJI=-Kk)JZUIyeB(q z@~-Tl$vZMrlRwD}P2QI6HMw?Z0e1(KF@G`Ipt*h)PlzS8p7JRoPJGRLqyS(;X^P4A zQzktAvp->Gx^^v>KI920JCjTzzN6t?f2*5S}o zO`sv0-Z`ypZR_7h@_YHV?aaYz^6q8ZXVkv1=1;z|U8m0NGR*R4=G_}7qy3>R<$$|) zs&FiS$%r;RJmp-@tUP)s!_xZ*6>KO<%>$k^N&zAv*wuS&+>E~+bo_D#m zS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~z|IXNwBqBuHJ25kIKLVAYE*R*hundW23cQk{-MtbK%zpO-ovVZ+9YyUE?Z zpRR+{h=rn-vPP@Kdb&Qajjr>&AR0xpctyNMM&z7$moAcB5nqXaSceFdF0+5xO)@a8 zhYk3J(~;iW%t~uk=8S2tT7j8nr<^rA<*Y5Sk(7^fQ~FnXlYlSN-XP#$+G%5?hhq!) z*&&^F(55|vH$5G_hthHqYDqU9TZurgf;KRY(K>Vj5;6A|sAGZJaPE5KRj&HQhZ z(D3BXjyxJKrh961XYg}6i)r_Z zl5-!7f0q1m)A2B)45;g{qH8OW6*c7JtVhUUF|8U7pGGF0Oe3`jw=n)z3(pmqG%~u) zF@!>wS}$iY=Uz6=g%v75P^ZR}Smz$^rU2LPfZm;*z342-y2F)kpAz@kPB%7N?xLGD l&v$nAgUxN`sUz7F>x7voJaKpzXC3rzLpab~2KH60{|93g5zPPq diff --git a/data/territorio/gui/territorio.gui b/data/territorio/gui/territorio.gui index 0178d85..fe77032 100644 --- a/data/territorio/gui/territorio.gui +++ b/data/territorio/gui/territorio.gui @@ -1,7 +1,7 @@ - + False @@ -43,6 +43,8 @@ + + @@ -318,14 +320,31 @@ lstore_aggregazioni_territoriali False True - 0 + 2 + + + Tipo + True + True + 1 + + + + 1 + + + + Nome + True + True + 2 - 1 + 2 diff --git a/src/aggregazioneterritoriale.c b/src/aggregazioneterritoriale.c index 8401b4f..272997e 100644 --- a/src/aggregazioneterritoriale.c +++ b/src/aggregazioneterritoriale.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010 Andrea Zagli + * Copyright (C) 2010-2011 Andrea Zagli * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -144,12 +144,12 @@ TerritorioAggregazioneTerritoriale NULL); g_signal_connect (priv->w, - "delete-event", G_CALLBACK (territorio_aggregazione_territoriale_on_w_aggregazione_territoriale_delete_event), (gpointer *)a); + "delete-event", G_CALLBACK (territorio_aggregazione_territoriale_on_w_aggregazione_territoriale_delete_event), (gpointer)a); g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button41"), - "clicked", G_CALLBACK (territorio_aggregazione_territoriale_on_btn_annulla_clicked), (gpointer *)a); + "clicked", G_CALLBACK (territorio_aggregazione_territoriale_on_btn_annulla_clicked), (gpointer)a); g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button42"), - "clicked", G_CALLBACK (territorio_aggregazione_territoriale_on_btn_salva_clicked), (gpointer *)a); + "clicked", G_CALLBACK (territorio_aggregazione_territoriale_on_btn_salva_clicked), (gpointer)a); priv->id = id; @@ -295,25 +295,21 @@ territorio_aggregazione_territoriale_get_property (GObject *object, guint proper static gboolean territorio_aggregazione_territoriale_conferma_chiusura (TerritorioAggregazioneTerritoriale *territorio_aggregazione_territoriale) { - GtkWidget *dialog; - gboolean ret; TerritorioAggregazioneTerritorialePrivate *priv = TERRITORIO_AGGREGAZIONE_TERRITORIALE_GET_PRIVATE (territorio_aggregazione_territoriale); ret = TRUE; - if (gtk_form_is_changed (priv->form)) + if (gtk_widget_get_sensitive (GTK_WIDGET (gtk_builder_get_object (priv->commons->gtkbuilder, "button42"))) + && gtk_form_is_changed (priv->form)) { - dialog = gtk_message_dialog_new (GTK_WINDOW (priv->w), - GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_QUESTION, - GTK_BUTTONS_YES_NO, - "Sicuro di voler chiudere senza salvare?"); - if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_NO) + if (solipa_message_dialog (priv->w, + GTK_MESSAGE_QUESTION, + GTK_BUTTONS_YES_NO, + "Sicuro di voler chiudere senza salvare?") == GTK_RESPONSE_NO) { ret = FALSE; } - gtk_widget_destroy (dialog); } return ret; diff --git a/src/aggregazioniterritoriali.c b/src/aggregazioniterritoriali.c index e56ef3a..5bc5ab7 100644 --- a/src/aggregazioniterritoriali.c +++ b/src/aggregazioniterritoriali.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010 Andrea Zagli + * Copyright (C) 2010-2011 Andrea Zagli * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -61,6 +61,7 @@ static void territorio_aggregazioni_territoriali_on_btn_seleziona_clicked (GtkBu enum { COL_ID, + COL_TIPO, COL_NOME }; @@ -219,19 +220,20 @@ territorio_aggregazioni_territoriali_carica (TerritorioAggregazioniTerritoriali gtk_list_store_clear (priv->lstore_aggregazioni_territoriali); dm = gdaex_query (priv->commons->gdaex, - "SELECT c.id, c.nome" + "SELECT c.id, t.nome AS tipo, c.nome" " FROM aggregazioni_territoriali AS c" + " INNER JOIN tipi_aggregazione_territoriale AS t ON c.id_tipi_aggregazione_territoriale = t.id" " WHERE c.status <> 'E'" - " ORDER BY c.nome"); + " ORDER BY t.nome, c.nome"); if (dm != NULL) { rows = gda_data_model_get_n_rows (dm); for (row = 0; row < rows; row++) { gtk_list_store_append (priv->lstore_aggregazioni_territoriali, &iter); - gtk_list_store_set (priv->lstore_aggregazioni_territoriali, &iter, COL_ID, gdaex_data_model_get_field_value_stringify_at (dm, row, "id"), + COL_TIPO, gdaex_data_model_get_field_value_stringify_at (dm, row, "tipo"), COL_NOME, gdaex_data_model_get_field_value_stringify_at (dm, row, "nome"), -1); } diff --git a/src/comune.c b/src/comune.c index b4ca114..d961ca6 100644 --- a/src/comune.c +++ b/src/comune.c @@ -382,25 +382,20 @@ territorio_comune_get_property (GObject *object, guint property_id, GValue *valu static gboolean territorio_comune_conferma_chiusura (TerritorioComune *territorio_comune) { - GtkWidget *dialog; - gboolean ret; TerritorioComunePrivate *priv = TERRITORIO_COMUNE_GET_PRIVATE (territorio_comune); - ret = TRUE; - if (gtk_form_is_changed (priv->form)) + if (gtk_widget_get_sensitive (GTK_WIDGET (gtk_builder_get_object (priv->commons->gtkbuilder, "button28"))) + && gtk_form_is_changed (priv->form)) { - dialog = gtk_message_dialog_new (GTK_WINDOW (priv->w), - GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_QUESTION, - GTK_BUTTONS_YES_NO, - "Sicuro di voler chiudere senza salvare?"); - if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_NO) + if (solipa_message_dialog (priv->w, + GTK_MESSAGE_QUESTION, + GTK_BUTTONS_YES_NO, + "Sicuro di voler chiudere senza salvare?") == GTK_RESPONSE_NO) { ret = FALSE; } - gtk_widget_destroy (dialog); } return ret; diff --git a/src/provincia.c b/src/provincia.c index 6d6ee66..ea9624a 100644 --- a/src/provincia.c +++ b/src/provincia.c @@ -171,12 +171,12 @@ TerritorioProvincia gtk_widget_show_all (twidget); g_signal_connect (priv->w, - "delete-event", G_CALLBACK (territorio_provincia_on_w_provincia_delete_event), (gpointer *)a); + "delete-event", G_CALLBACK (territorio_provincia_on_w_provincia_delete_event), (gpointer)a); g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button20"), - "clicked", G_CALLBACK (territorio_provincia_on_btn_annulla_clicked), (gpointer *)a); + "clicked", G_CALLBACK (territorio_provincia_on_btn_annulla_clicked), (gpointer)a); g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button21"), - "clicked", G_CALLBACK (territorio_provincia_on_btn_salva_clicked), (gpointer *)a); + "clicked", G_CALLBACK (territorio_provincia_on_btn_salva_clicked), (gpointer)a); priv->id = id; @@ -382,18 +382,16 @@ territorio_provincia_conferma_chiusura (TerritorioProvincia *territorio_provinci TerritorioProvinciaPrivate *priv = TERRITORIO_PROVINCIA_GET_PRIVATE (territorio_provincia); ret = TRUE; - if (gtk_form_is_changed (priv->form)) + if (gtk_widget_get_sensitive (GTK_WIDGET (gtk_builder_get_object (priv->commons->gtkbuilder, "button21"))) + && gtk_form_is_changed (priv->form)) { - dialog = gtk_message_dialog_new (GTK_WINDOW (priv->w), - GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_QUESTION, - GTK_BUTTONS_YES_NO, - "Sicuro di voler chiudere senza salvare?"); - if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_NO) + if (solipa_message_dialog (priv->w, + GTK_MESSAGE_QUESTION, + GTK_BUTTONS_YES_NO, + "Sicuro di voler chiudere senza salvare?") == GTK_RESPONSE_NO) { ret = FALSE; } - gtk_widget_destroy (dialog); } return ret; diff --git a/src/regione.c b/src/regione.c index ac6d9dc..7b7491f 100644 --- a/src/regione.c +++ b/src/regione.c @@ -322,18 +322,16 @@ territorio_regione_conferma_chiusura (TerritorioRegione *territorio_regione) TerritorioRegionePrivate *priv = TERRITORIO_REGIONE_GET_PRIVATE (territorio_regione); ret = TRUE; - if (gtk_form_is_changed (priv->form)) + if (gtk_widget_get_sensitive (GTK_WIDGET (gtk_builder_get_object (priv->commons->gtkbuilder, "button14"))) + && gtk_form_is_changed (priv->form)) { - dialog = gtk_message_dialog_new (GTK_WINDOW (priv->w), - GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_QUESTION, - GTK_BUTTONS_YES_NO, - "Sicuro di voler chiudere senza salvare?"); - if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_NO) + if (solipa_message_dialog (priv->w, + GTK_MESSAGE_QUESTION, + GTK_BUTTONS_YES_NO, + "Sicuro di voler chiudere senza salvare?") == GTK_RESPONSE_NO) { ret = FALSE; } - gtk_widget_destroy (dialog); } return ret; diff --git a/src/stato.c b/src/stato.c index 02fb64f..85d9910 100644 --- a/src/stato.c +++ b/src/stato.c @@ -315,25 +315,21 @@ territorio_stato_get_property (GObject *object, guint property_id, GValue *value static gboolean territorio_stato_conferma_chiusura (TerritorioStato *territorio_stato) { - GtkWidget *dialog; - gboolean ret; TerritorioStatoPrivate *priv = TERRITORIO_STATO_GET_PRIVATE (territorio_stato); ret = TRUE; - if (gtk_form_is_changed (priv->form)) + if (gtk_widget_get_sensitive (GTK_WIDGET (gtk_builder_get_object (priv->commons->gtkbuilder, "button7"))) + && gtk_form_is_changed (priv->form)) { - dialog = gtk_message_dialog_new (GTK_WINDOW (priv->w), - GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_QUESTION, - GTK_BUTTONS_YES_NO, - "Sicuro di voler chiudere senza salvare?"); - if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_NO) + if (solipa_message_dialog (priv->w, + GTK_MESSAGE_QUESTION, + GTK_BUTTONS_YES_NO, + "Sicuro di voler chiudere senza salvare?") == GTK_RESPONSE_NO) { ret = FALSE; } - gtk_widget_destroy (dialog); } return ret; diff --git a/src/tipoaggregazioneterritoriale.c b/src/tipoaggregazioneterritoriale.c index c1fe355..fd5f9e3 100644 --- a/src/tipoaggregazioneterritoriale.c +++ b/src/tipoaggregazioneterritoriale.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010 Andrea Zagli + * Copyright (C) 2010-2011 Andrea Zagli * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -143,12 +143,12 @@ TerritorioTipoAggregazioneTerritoriale NULL); g_signal_connect (priv->w, - "delete-event", G_CALLBACK (territorio_tipo_aggregazione_territoriale_on_w_tipo_aggregazione_territoriale_delete_event), (gpointer *)a); + "delete-event", G_CALLBACK (territorio_tipo_aggregazione_territoriale_on_w_tipo_aggregazione_territoriale_delete_event), (gpointer)a); g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button34"), - "clicked", G_CALLBACK (territorio_tipo_aggregazione_territoriale_on_btn_annulla_clicked), (gpointer *)a); + "clicked", G_CALLBACK (territorio_tipo_aggregazione_territoriale_on_btn_annulla_clicked), (gpointer)a); g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button35"), - "clicked", G_CALLBACK (territorio_tipo_aggregazione_territoriale_on_btn_salva_clicked), (gpointer *)a); + "clicked", G_CALLBACK (territorio_tipo_aggregazione_territoriale_on_btn_salva_clicked), (gpointer)a); priv->id = id; @@ -265,7 +265,6 @@ static void territorio_tipo_aggregazione_territoriale_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) { TerritorioTipoAggregazioneTerritoriale *territorio_tipo_aggregazione_territoriale = TERRITORIO_TIPO_AGGREGAZIONE_TERRITORIALE (object); - TerritorioTipoAggregazioneTerritorialePrivate *priv = TERRITORIO_TIPO_AGGREGAZIONE_TERRITORIALE_GET_PRIVATE (territorio_tipo_aggregazione_territoriale); switch (property_id) @@ -280,7 +279,6 @@ static void territorio_tipo_aggregazione_territoriale_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec) { TerritorioTipoAggregazioneTerritoriale *territorio_tipo_aggregazione_territoriale = TERRITORIO_TIPO_AGGREGAZIONE_TERRITORIALE (object); - TerritorioTipoAggregazioneTerritorialePrivate *priv = TERRITORIO_TIPO_AGGREGAZIONE_TERRITORIALE_GET_PRIVATE (territorio_tipo_aggregazione_territoriale); switch (property_id) @@ -294,25 +292,21 @@ territorio_tipo_aggregazione_territoriale_get_property (GObject *object, guint p static gboolean territorio_tipo_aggregazione_territoriale_conferma_chiusura (TerritorioTipoAggregazioneTerritoriale *territorio_tipo_aggregazione_territoriale) { - GtkWidget *dialog; - gboolean ret; TerritorioTipoAggregazioneTerritorialePrivate *priv = TERRITORIO_TIPO_AGGREGAZIONE_TERRITORIALE_GET_PRIVATE (territorio_tipo_aggregazione_territoriale); ret = TRUE; - if (gtk_form_is_changed (priv->form)) + if (gtk_widget_get_sensitive (GTK_WIDGET (gtk_builder_get_object (priv->commons->gtkbuilder, "button35"))) + && gtk_form_is_changed (priv->form)) { - dialog = gtk_message_dialog_new (GTK_WINDOW (priv->w), - GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_QUESTION, - GTK_BUTTONS_YES_NO, - "Sicuro di voler chiudere senza salvare?"); - if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_NO) + if (solipa_message_dialog (priv->w, + GTK_MESSAGE_QUESTION, + GTK_BUTTONS_YES_NO, + "Sicuro di voler chiudere senza salvare?") == GTK_RESPONSE_NO) { ret = FALSE; } - gtk_widget_destroy (dialog); } return ret; diff --git a/src/via.c b/src/via.c index d5242ec..c5b56a8 100644 --- a/src/via.c +++ b/src/via.c @@ -296,7 +296,6 @@ static void territorio_via_salva (TerritorioVia *territorio_via) { gchar *sql; - GtkWidget *dialog; AutozIResource *ires1; TerritorioViaClass *klass = TERRITORIO_VIA_GET_CLASS (territorio_via); @@ -339,13 +338,10 @@ territorio_via_salva (TerritorioVia *territorio_via) priv->id = strtol (gtk_label_get_text (GTK_LABEL (priv->objects[LBL_ID])), NULL, 10); } - dialog = gtk_message_dialog_new (GTK_WINDOW (priv->w), - GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_INFO, - GTK_BUTTONS_OK, - "Salvataggio eseguito con successo."); - gtk_dialog_run (GTK_DIALOG (dialog)); - gtk_widget_destroy (dialog); + solipa_message_dialog (priv->w, + GTK_MESSAGE_INFO, + GTK_BUTTONS_OK, + "Salvataggio eseguito con successo."); } else { @@ -354,13 +350,10 @@ territorio_via_salva (TerritorioVia *territorio_via) gtk_label_set_text (GTK_LABEL (priv->objects[LBL_ID]), ""); } - dialog = gtk_message_dialog_new (GTK_WINDOW (priv->w), - GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_WARNING, - GTK_BUTTONS_OK, - "Errore durante il salvataggio."); - gtk_dialog_run (GTK_DIALOG (dialog)); - gtk_widget_destroy (dialog); + solipa_message_dialog (priv->w, + GTK_MESSAGE_WARNING, + GTK_BUTTONS_OK, + "Errore durante il salvataggio."); } } @@ -395,25 +388,21 @@ territorio_via_get_property (GObject *object, guint property_id, GValue *value, static gboolean territorio_via_conferma_chiusura (TerritorioVia *territorio_via) { - GtkWidget *dialog; - gboolean ret; TerritorioViaPrivate *priv = TERRITORIO_VIA_GET_PRIVATE (territorio_via); ret = TRUE; - if (gtk_form_is_changed (priv->form)) + if (gtk_widget_get_sensitive (GTK_WIDGET (gtk_builder_get_object (priv->commons->gtkbuilder, "button52"))) + && gtk_form_is_changed (priv->form)) { - dialog = gtk_message_dialog_new (GTK_WINDOW (priv->w), - GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_QUESTION, - GTK_BUTTONS_YES_NO, - "Sicuro di voler chiudere senza salvare?"); - if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_NO) + if (solipa_message_dialog (priv->w, + GTK_MESSAGE_QUESTION, + GTK_BUTTONS_YES_NO, + "Sicuro di voler chiudere senza salvare?") == GTK_RESPONSE_NO) { ret = FALSE; } - gtk_widget_destroy (dialog); } return ret; -- 2.49.0