[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_9_5-83-gbf1d9b5

Pierre Biava nobody at users.sourceforge.net
Tue Apr 10 22:54:17 CEST 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grisbi".

The branch, master has been updated
       via  bf1d9b5e44e494f24a4b9eb67ffbee2679421a19 (commit)
      from  52b2ae12201f453b332f0586d2970a6d795be1d8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit bf1d9b5e44e494f24a4b9eb67ffbee2679421a19
Author: pbiava <pierre.biava at nerim.net>
Date:   Tue Apr 10 22:53:36 2012 +0200

    Corrects a display bug when changing account in preferences

-----------------------------------------------------------------------

Changes:
diff --git a/src/bet_config.c b/src/bet_config.c
index 94a8b03..14e77b7 100644
--- a/src/bet_config.c
+++ b/src/bet_config.c
@@ -729,6 +729,7 @@ GtkWidget *bet_config_get_select_historical_data ( GtkWidget *container,
                     G_CALLBACK ( bet_config_fyear_clicked ),
                     GINT_TO_POINTER ( 0 ) );
 
+    /* return */
     return hbox;
 }
 
@@ -999,6 +1000,7 @@ gboolean bet_config_change_account ( GtkWidget *combo )
 {
     GtkWidget *notebook;
     GtkWidget *widget = NULL;
+    GtkWidget *fyear_combo;
     gint account_number;
     gint bet_use_budget;
     bet_type_onglets bet_show_onglets;
@@ -1012,6 +1014,12 @@ gboolean bet_config_change_account ( GtkWidget *combo )
     account_number = gsb_account_get_combo_account_number ( combo );
     bet_use_budget = gsb_data_account_get_bet_use_budget ( account_number );
 
+    /* on bloque l'appel à la fonction bet_config_fyear_clicked */
+    fyear_combo = g_object_get_data ( G_OBJECT ( account_page ), "bet_config_hist_fyear_combo" );
+    g_signal_handlers_block_by_func ( G_OBJECT ( fyear_combo ),
+                        G_CALLBACK ( bet_config_fyear_clicked ),
+                        GINT_TO_POINTER ( 0 ) );
+
     switch ( bet_use_budget )
     {
         case -1:
@@ -1058,6 +1066,12 @@ gboolean bet_config_change_account ( GtkWidget *combo )
             break;
     }
 
+    /* on débloque l'appel à la fonction bet_config_fyear_clicked */
+    g_signal_handlers_unblock_by_func ( G_OBJECT ( fyear_combo ),
+                        G_CALLBACK ( bet_config_fyear_clicked ),
+                        GINT_TO_POINTER ( 0 ) );
+
+    /* return */
     return FALSE;
 }
 


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list