[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_7_99-45-g90c7543

Pierre Biava nobody at users.sourceforge.net
Sun Feb 6 20:54:42 CET 2011


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  90c75437a4e4042ec981f498cfc89851601d7658 (commit)
       via  786188b33bf84f61cbe5adc95db6376e41723c74 (commit)
       via  ad726696269958859619457f5e618997fad12aa1 (commit)
      from  cc052785f8d3e2b739657c9a65d01d7c5e215156 (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 90c75437a4e4042ec981f498cfc89851601d7658
Author: pbiava <pierre.biava at nerim.net>
Date:   Sun Feb 6 19:07:01 2011 +0100

    prevents a crash with a double call to g_free ()

commit 786188b33bf84f61cbe5adc95db6376e41723c74
Author: pbiava <pierre.biava at nerim.net>
Date:   Sun Feb 6 18:39:58 2011 +0100

    Fixes a bug in the validation of form

commit ad726696269958859619457f5e618997fad12aa1
Author: pbiava <pierre.biava at nerim.net>
Date:   Sun Feb 6 18:37:59 2011 +0100

    fixes a memory read error

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

Changes:
diff --git a/src/bet_hist.c b/src/bet_hist.c
index d2b94a7..4e3e99f 100644
--- a/src/bet_hist.c
+++ b/src/bet_hist.c
@@ -966,8 +966,6 @@ void bet_historical_populate_div_model ( gpointer key,
     if ( sub_div_visible && bet_historical_get_full_div ( model, &parent ) )
     {
         amount = bet_historical_get_children_amount ( model, &parent );
-        if ( str_amount )
-            g_free ( str_amount );
         str_amount = gsb_real_safe_real_to_string ( amount,
                     gsb_data_currency_get_floating_point ( currency_number ) );
         str_retained = gsb_real_get_string_with_currency ( amount, currency_number, TRUE );
diff --git a/src/gsb_form_widget.c b/src/gsb_form_widget.c
index 45da1b2..13241ce 100644
--- a/src/gsb_form_widget.c
+++ b/src/gsb_form_widget.c
@@ -1199,10 +1199,10 @@ gboolean gsb_form_widget_amount_entry_validate ( gint element_number )
     if ( g_strcmp0 ( gsb_form_widget_get_name ( element_number ), text ) == 0 )
         return TRUE;
 
-    /* if nothing in the entry, keep the normal style */
+    /* if nothing in the entry, set the widget empty */
     if ( !strlen ( text ) )
     {
-        gtk_widget_modify_base ( entry, GTK_STATE_NORMAL, NULL );
+        gsb_form_widget_set_empty ( entry, TRUE );
         return TRUE;
     }
 
diff --git a/src/transaction_list.c b/src/transaction_list.c
index 65761e7..bcbf74d 100644
--- a/src/transaction_list.c
+++ b/src/transaction_list.c
@@ -2078,7 +2078,7 @@ void transaction_list_set_color_jour ( gint account_number )
     element_sort = gsb_data_account_get_element_sort ( account_number,
 							     custom_list -> sort_col);
 
-    for (i= custom_list -> num_visibles_rows -1; i >= 0  ; i--)
+    for ( i = custom_list -> num_visibles_rows -1; i >= 0  ; i-- )
     {
         CustomRecord *record;
 
@@ -2105,7 +2105,8 @@ void transaction_list_set_color_jour ( gint account_number )
                     {
                         record -> row_bg = &couleur_jour;
                         i--;
-                        record = custom_list -> visibles_rows[i];
+                        if ( i >= 0 )
+                            record = custom_list -> visibles_rows[i];
                     }
                     /* on se positionne sur la première ligne */
                     record = custom_list -> visibles_rows[0];


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list