[grisbi-cvs] grisbi/src gsb_account_property.c,1.31,1.32

Pierre Biava pbiava at users.sourceforge.net
Fri Apr 10 21:22:54 CEST 2009


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

Modified Files:
	gsb_account_property.c 
Log Message:
fix bug update label_bank_data

Index: gsb_account_property.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_account_property.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- gsb_account_property.c	8 Apr 2009 21:02:26 -0000	1.31
+++ gsb_account_property.c	10 Apr 2009 19:22:50 -0000	1.32
@@ -75,6 +75,7 @@
                         gint *p_origin  );
 static gboolean gsb_account_property_changed_bank_label ( GtkWidget *combobox,
                         gpointer null );
+static void gsb_account_property_iban_clear_label_data ( void );
 static gint gsb_account_property_iban_control_iban ( gchar *iban );
 static void gsb_account_property_iban_delete_text ( GtkEditable *entry,                                                        
                         gint start_pos,
@@ -1303,6 +1304,7 @@
     if ( sensitive )
     {
         gtk_widget_set_sensitive ( GTK_WIDGET (bank_list_combobox), sensitive );
+        gsb_account_property_iban_clear_label_data ( );
         gtk_widget_show ( GTK_WIDGET (detail_guichet) );
         gtk_widget_hide ( GTK_WIDGET (label_guichet) );
         gtk_widget_show ( GTK_WIDGET (detail_no_compte) );
@@ -1344,6 +1346,23 @@
                         gsb_data_account_get_bank_account_key (
                         current_account), current_account );        
 }
+
+
+/**
+ *
+ *
+ *
+ *
+ * */
+void gsb_account_property_iban_clear_label_data ( void )
+{
+    gtk_label_set_text ( GTK_LABEL (label_code_banque), "" );
+    gtk_label_set_text ( GTK_LABEL (label_guichet), "" );
+    gtk_label_set_text ( GTK_LABEL (label_no_compte), "" );
+    gtk_label_set_text ( GTK_LABEL (label_cle_compte), "" );
+}
+
+
 /**
  * Contrôle la validité du numéro IBAN (non opérationnel pour la partie IBAN)
  *



More information about the cvs mailing list