From 94954eeca91b2517134c2f69b52aafdee4ef1319 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sun, 19 Jun 2011 13:13:14 +0200 Subject: [PATCH] Implementati i segnali di aggiornamento dei GtkFormDecoder in TerritorioWidget. --- src/widget.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/widget.c b/src/widget.c index 081e185..85ffdb5 100644 --- a/src/widget.c +++ b/src/widget.c @@ -706,31 +706,51 @@ territorio_widget_set_transient (TerritorioWidget *twidget) static void territorio_widget_on_stato_aggiornato (gpointer instance, gpointer user_data) { + TerritorioWidget *f = (TerritorioWidget *)user_data; + TerritorioWidgetPrivate *priv = TERRITORIO_WIDGET_GET_PRIVATE (f); + gtk_form_decoder_set_key (GTK_FORM_DECODER (priv->dec_stato), + gtk_form_decoder_get_key (GTK_FORM_DECODER (priv->dec_stato))); } static void territorio_widget_on_regione_aggiornato (gpointer instance, gpointer user_data) { + TerritorioWidget *f = (TerritorioWidget *)user_data; + TerritorioWidgetPrivate *priv = TERRITORIO_WIDGET_GET_PRIVATE (f); + gtk_form_decoder_set_key (GTK_FORM_DECODER (priv->dec_regione), + gtk_form_decoder_get_key (GTK_FORM_DECODER (priv->dec_regione))); } static void territorio_widget_on_provincia_aggiornato (gpointer instance, gpointer user_data) { + TerritorioWidget *f = (TerritorioWidget *)user_data; + TerritorioWidgetPrivate *priv = TERRITORIO_WIDGET_GET_PRIVATE (f); + gtk_form_decoder_set_key (GTK_FORM_DECODER (priv->dec_provincia), + gtk_form_decoder_get_key (GTK_FORM_DECODER (priv->dec_provincia))); } static void territorio_widget_on_comune_aggiornato (gpointer instance, gpointer user_data) { + TerritorioWidget *f = (TerritorioWidget *)user_data; + TerritorioWidgetPrivate *priv = TERRITORIO_WIDGET_GET_PRIVATE (f); + gtk_form_decoder_set_key (GTK_FORM_DECODER (priv->dec_comune), + gtk_form_decoder_get_key (GTK_FORM_DECODER (priv->dec_comune))); } static void territorio_widget_on_via_aggiornato (gpointer instance, gpointer user_data) { + TerritorioWidget *f = (TerritorioWidget *)user_data; + TerritorioWidgetPrivate *priv = TERRITORIO_WIDGET_GET_PRIVATE (f); + gtk_form_decoder_set_key (GTK_FORM_DECODER (priv->dec_via), + gtk_form_decoder_get_key (GTK_FORM_DECODER (priv->dec_via))); } static void -- 2.49.0