[grisbi-cvs] grisbi/src gsb_account_property.c, 1.25, 1.26 gsb_account_property.h, 1.2, 1.3 gsb_data_account.h, 1.30, 1.31 traitement_variables.c, 1.169, 1.170

Pierre Biava pbiava at users.sourceforge.net
Tue Mar 24 21:24:43 CET 2009


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

Modified Files:
	gsb_account_property.c gsb_account_property.h 
	gsb_data_account.h traitement_variables.c 
Log Message:
pbiava on 03/24/2009 fix bug display bank code


Index: traitement_variables.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/traitement_variables.c,v
retrieving revision 1.169
retrieving revision 1.170
diff -u -d -r1.169 -r1.170
--- traitement_variables.c	13 Mar 2009 20:15:38 -0000	1.169
+++ traitement_variables.c	24 Mar 2009 20:24:41 -0000	1.170
@@ -29,6 +29,7 @@
 
 /*START_INCLUDE*/
 #include "traitement_variables.h"
+#include "./gsb_account_property.h"
 #include "./gsb_currency.h"
 #include "./gsb_data_account.h"
 #include "./gsb_data_archive.h"
@@ -183,6 +184,9 @@
 	return;
     }
 
+    /* pbiava on 03/24/2009 fix bug display bank code */
+    gsb_account_property_set_label_code_banque ( );
+
     if ( modif )
     {
 	if ( ! etat.modification_fichier )

Index: gsb_account_property.h
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_account_property.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- gsb_account_property.h	24 Mar 2009 19:07:50 -0000	1.2
+++ gsb_account_property.h	24 Mar 2009 20:24:41 -0000	1.3
@@ -14,5 +14,6 @@
 GSList *gsb_account_property_create_combobox_list ( void );
 GtkWidget *gsb_account_property_create_page ( void );
 void gsb_account_property_fill_page ( void );
+void gsb_account_property_set_label_code_banque ( void );
 /* END_DECLARATION */
 #endif

Index: gsb_account_property.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_account_property.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- gsb_account_property.c	24 Mar 2009 19:07:50 -0000	1.25
+++ gsb_account_property.c	24 Mar 2009 20:24:41 -0000	1.26
@@ -348,7 +348,7 @@
     gtk_size_group_add_widget ( GTK_SIZE_GROUP ( size_group ), label );
     gtk_box_pack_start ( GTK_BOX(hbox), label, FALSE, FALSE, 0);
 
-    label_code_banque = gtk_label_new (NULL);
+    label_code_banque = gtk_label_new ( NULL );
     g_signal_connect ( G_OBJECT (label_code_banque ), "destroy",
 		       G_CALLBACK ( gtk_widget_destroyed), &label_code_banque );
     gtk_misc_set_alignment ( GTK_MISC(label), MISC_LEFT, MISC_VERT_CENTER );
@@ -565,12 +565,10 @@
 
     /* fill bank informations */
     bank_number = gsb_data_account_get_bank (current_account);
-    /* here i don't know why, at the opening of the file, if we go into the property of account,
-     * the bank code is not shown, but the function under really show it... and if we do anything
-     * (toggle a checkbutton, change account...) this code appear. didn't find why... */
     gsb_bank_list_set_bank (bank_list_combobox,
 			    bank_number,
 			    current_account );
+    gsb_account_property_set_label_code_banque ( );
 
     gsb_autofunc_entry_set_value (detail_guichet,
 				  gsb_data_account_get_bank_branch_code (current_account), current_account);
@@ -810,6 +808,25 @@
 }
 
 
+/**
+ * pbiava on 03/24/2009 fix bug display bank code
+ *
+ * appellée au moment de l'ouverture de l'onglet caractéristique du compte
+ * 
+ * */
+void gsb_account_property_set_label_code_banque ( void )
+{
+    gint bank_number;
+    gint current_account;
+
+    if ( label_code_banque && GTK_WIDGET_VISIBLE ( label_code_banque) )
+    {
+        current_account = gsb_gui_navigation_get_current_account ();
+        bank_number = gsb_data_account_get_bank (current_account);
+        gtk_label_set_text ( GTK_LABEL (label_code_banque),
+                            gsb_data_bank_get_code (bank_number) );
+    }
+}
 /* Local Variables: */
 /* c-basic-offset: 4 */
 /* End: */

Index: gsb_data_account.h
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_data_account.h,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- gsb_data_account.h	24 Mar 2009 19:07:50 -0000	1.30
+++ gsb_data_account.h	24 Mar 2009 20:24:41 -0000	1.31
@@ -36,6 +36,7 @@
 GdkPixbuf *gsb_data_account_get_account_standard_pixbuf ( kind_account account_kind );
 gint gsb_data_account_get_accounts_amount ( void );
 gint gsb_data_account_get_bank ( gint account_number );
+gchar *gsb_data_account_get_bank_account_IBAN (gint account_number);
 gchar *gsb_data_account_get_bank_account_key ( gint account_number );
 gchar *gsb_data_account_get_bank_account_number ( gint account_number );
 gchar *gsb_data_account_get_bank_branch_code ( gint account_number );
@@ -83,6 +84,7 @@
 					   gint new_no );
 gboolean gsb_data_account_set_bank ( gint account_number,
 				     gint bank );
+gboolean gsb_data_account_set_bank_account_IBAN ( gint account_number, const gchar *IBAN );
 gboolean gsb_data_account_set_bank_account_key ( gint account_number,
 						 const gchar *bank_account_key );
 gboolean gsb_data_account_set_bank_account_number ( gint account_number,
@@ -153,9 +155,6 @@
 gboolean gsb_data_account_sort_list_free ( gint account_number );
 gboolean gsb_data_account_sort_list_remove ( gint account_number,
 					     gint payment_number );
-gboolean gsb_data_account_set_bank_account_IBAN ( gint account_number,
-					       const gchar *IBAN );
-gchar *gsb_data_account_get_bank_account_IBAN (gint account_number);
 /* END_DECLARATION */
 
 



More information about the cvs mailing list