[grisbi-cvs] grisbi/src gsb_transactions_list.c,1.151,1.152

Pierre Biava pbiava at users.sourceforge.net
Thu Feb 12 21:51:39 CET 2009


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

Modified Files:
	gsb_transactions_list.c 
Log Message:
shows the balance after mark the operation

Index: gsb_transactions_list.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_transactions_list.c,v
retrieving revision 1.151
retrieving revision 1.152
diff -u -d -r1.151 -r1.152
--- gsb_transactions_list.c	12 Feb 2009 20:46:52 -0000	1.151
+++ gsb_transactions_list.c	12 Feb 2009 20:51:37 -0000	1.152
@@ -227,13 +227,13 @@
 	return;
 
     if (keep_selected_transaction)
-	selected_transaction = transaction_list_select_get ();
+        selected_transaction = transaction_list_select_get ();
     transaction_list_filter (account_number);
     transaction_list_sort ();
     transaction_list_colorize ();
     transaction_list_set_balances ();
     if (keep_selected_transaction)
-	transaction_list_select (selected_transaction);
+        transaction_list_select (selected_transaction);
 }
 
 
@@ -1333,7 +1333,7 @@
     if ( new_selected_transaction != -1 )
     {
 	account_number = gsb_data_transaction_get_account_number (new_selected_transaction);
-	gsb_menu_transaction_operations_set_sensitive ( TRUE );
+    gsb_menu_transaction_operations_set_sensitive ( TRUE );
     }
     else
     {
@@ -1353,8 +1353,9 @@
 	gsb_form_fill_by_transaction (new_selected_transaction, TRUE, FALSE);
 
     /* give the focus to the transaction_tree_view pbiava 02/09/2009 
-     * edit due to a regression (perte de <CtrlR>) */
-    gtk_widget_grab_focus ( transactions_tree_view );
+     * edit due to a regression loss of <CtrlR> */
+    if ( transactions_tree_view )
+        gtk_widget_grab_focus ( transactions_tree_view );
 }
 
 
@@ -1483,8 +1484,11 @@
 
     /* if we are reconciling, update the amounts label */
     if ( etat.equilibrage )
+    {
+    /* pbiava 02/12/2009 : shows the balance after you mark the transaction */
+    transaction_list_set_balances (  );
 	gsb_reconcile_update_amounts (NULL, NULL);
-
+    }
     /* need to update the marked amount on the home page */
     mise_a_jour_liste_comptes_accueil = 1;
 



More information about the cvs mailing list