[grisbi-cvs] [SCM] grisbi branch, master, updated. 3b04245f35e1d96aaa9df84f1e5b6aeee4f32b8d

Pierre Biava nobody at users.sourceforge.net
Thu Jun 17 22:58:37 CEST 2010


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  3b04245f35e1d96aaa9df84f1e5b6aeee4f32b8d (commit)
       via  1dd93036b60d0d091c081b1cb6af2c4cc94dfe89 (commit)
      from  c18445d71d373ebbd21692e10b9ab7cf35ec1587 (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 3b04245f35e1d96aaa9df84f1e5b6aeee4f32b8d
Author: pbiava <pierre.biava at nerim.net>
Date:   Thu Jun 17 22:48:04 2010 +0200

    Fixed a crash when creating a new transaction

commit 1dd93036b60d0d091c081b1cb6af2c4cc94dfe89
Author: pbiava <pierre.biava at nerim.net>
Date:   Thu Jun 17 22:46:33 2010 +0200

    Changes the sorting of the payees in the gtk_combofix

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

Changes:
diff --git a/src/gsb_data_payee.c b/src/gsb_data_payee.c
index 8e11eb4..d3753c0 100644
--- a/src/gsb_data_payee.c
+++ b/src/gsb_data_payee.c
@@ -460,8 +460,7 @@ GSList *gsb_data_payee_get_name_list ( void )
         payee = tmp_list -> data;
 
         if ( payee -> payee_name )
-            return_list = g_slist_insert_sorted ( return_list, payee -> payee_name,
-                        (GCompareFunc) my_strcmp );
+			return_list = g_slist_append ( return_list, payee -> payee_name );
 
         tmp_list = tmp_list -> next;
     }
diff --git a/src/gsb_transactions_list.c b/src/gsb_transactions_list.c
index c767c0a..3e2a22c 100644
--- a/src/gsb_transactions_list.c
+++ b/src/gsb_transactions_list.c
@@ -2389,6 +2389,9 @@ gboolean assert_selected_transaction ()
  */
 gboolean new_transaction ()
 {
+	if ( gsb_gui_navigation_get_current_account ( ) == -1 )
+		return FALSE;
+
     gtk_notebook_set_current_page ( GTK_NOTEBOOK ( notebook_general ), 1 );
     gsb_form_escape_form();
     gsb_form_show (TRUE);
diff --git a/src/gtk_combofix.c b/src/gtk_combofix.c
index 6641bec..dcd0397 100644
--- a/src/gtk_combofix.c
+++ b/src/gtk_combofix.c
@@ -1765,7 +1765,7 @@ static gint gtk_combofix_default_sort_func ( GtkTreeModel *model_sort,
 
         cmp_string_1 = g_utf8_collate_key ( string_1, -1 );
         cmp_string_2 = g_utf8_collate_key ( string_2, -1 );
-        return_value = g_ascii_strcasecmp ( cmp_string_1, cmp_string_2 );
+        return_value = strcmp ( cmp_string_1, cmp_string_2 );
 
         g_free ( cmp_string_1 );
         g_free ( cmp_string_2 );


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list