[grisbi-cvs] grisbi/src gsb_account_property.c, 1.20, 1.21 gsb_currency.c, 1.32, 1.33

Benjamin Drieu benj2 at users.sourceforge.net
Thu Feb 5 00:10:18 CET 2009


Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv23145

Modified Files:
	gsb_account_property.c gsb_currency.c 
Log Message:
Do not call the changed-hook on the combobox (still buggy)

Index: gsb_account_property.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_account_property.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- gsb_account_property.c	11 Jan 2009 16:01:42 -0000	1.20
+++ gsb_account_property.c	4 Feb 2009 23:10:16 -0000	1.21
@@ -1,7 +1,7 @@
 /* ************************************************************************** */
 /*                                                                            */
 /*     Copyright (C)	2000-2008 Cédric Auger (cedric at grisbi.org)	      */
-/*			2004-2008 Benjamin Drieu (bdrieu at april.org) 	      */
+/*			2004-2009 Benjamin Drieu (bdrieu at april.org) 	      */
 /*			http://www.grisbi.org   			      */
 /*                                                                            */
 /*  This program is free software; you can redistribute it and/or modify      */
@@ -69,8 +69,6 @@
 /*START_STATIC*/
 static gboolean gsb_account_property_change_currency ( GtkWidget *combobox,
 						gpointer null );
-static gboolean gsb_account_property_changed ( GtkWidget *widget,
-					gint *p_origin  );
 static gboolean gsb_account_property_changed_bank_label ( GtkWidget *combobox,
 						   gpointer null );
 /*END_STATIC*/
@@ -87,7 +85,7 @@
 static GtkWidget *label_code_banque = NULL;
 static GtkWidget *detail_guichet = NULL;
 static GtkWidget *detail_cle_compte = NULL;
-static GtkWidget *detail_devise_compte = NULL;
+GtkWidget *detail_devise_compte = NULL;
 static GtkWidget *detail_compte_cloture = NULL;
 static GtkWidget *detail_solde_init = NULL;
 static GtkWidget *detail_solde_mini_autorise = NULL;

Index: gsb_currency.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_currency.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- gsb_currency.c	7 Jan 2009 21:18:55 -0000	1.32
+++ gsb_currency.c	4 Feb 2009 23:10:16 -0000	1.33
@@ -1,7 +1,7 @@
 /* ************************************************************************** */
 /*                                                                            */
 /*     Copyright (C)	2000-2007 C�dric Auger (cedric at grisbi.org)	      */
-/*			2003-2007 Benjamin Drieu (bdrieu at april.org)	      */
+/*			2003-2009 Benjamin Drieu (bdrieu at april.org)	      */
 /* 			http://www.grisbi.org				      */
 /*                                                                            */
 /*  This program is free software; you can redistribute it and/or modify      */
@@ -55,6 +55,9 @@
 					       GtkWidget *combobox_2 );
 /*END_STATIC*/
 
+/*START_EXTERN*/
+extern GtkWidget *detail_devise_compte;
+/*END_EXTERN*/
 /**
  * the currency list store, contains 3 columns :
  * 1 : the code of the currency
@@ -257,6 +260,7 @@
 }
 
 
+
 /**
  * update the list of the currencies for combobox, wich change all
  * the current combobox content
@@ -274,6 +278,14 @@
 	!gsb_data_currency_get_currency_list ())
 	return FALSE;
 
+    /* XXX still buggy, very slow on the gtk_list_store_clear() call,
+     * try to find why. */
+    if ( detail_devise_compte )
+    {
+	g_signal_handler_block ( detail_devise_compte,
+				 g_object_get_data ( detail_devise_compte, "changed-hook" ) );
+    }
+
     gtk_list_store_clear (GTK_LIST_STORE (combobox_currency_store));
     list_tmp = gsb_data_currency_get_currency_list ();
 
@@ -314,6 +326,12 @@
     mise_a_jour_liste_echeances_manuelles_accueil = 1;
     mise_a_jour_liste_echeances_auto_accueil = 1;
 
+    if ( detail_devise_compte )
+    {
+	g_signal_handler_unblock ( detail_devise_compte,
+				   g_object_get_data ( detail_devise_compte, "changed-hook" ) );
+    }
+
     return FALSE;
 }
 



More information about the cvs mailing list