[grisbi-cvs] grisbi/src categories_onglet.c, 1.196, 1.197 gsb_assistant_first.c, 1.25, 1.26 imputation_budgetaire.c, 1.158, 1.159 tiers_onglet.c, 1.163, 1.164

Pierre Biava pbiava at users.sourceforge.net
Fri Aug 28 22:51:40 CEST 2009


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

Modified Files:
	categories_onglet.c gsb_assistant_first.c 
	imputation_budgetaire.c tiers_onglet.c 
Log Message:
Fixed various bugs and update the French translation

Index: categories_onglet.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/categories_onglet.c,v
retrieving revision 1.196
retrieving revision 1.197
diff -u -d -r1.196 -r1.197
--- categories_onglet.c	24 Aug 2009 08:57:45 -0000	1.196
+++ categories_onglet.c	28 Aug 2009 20:51:38 -0000	1.197
@@ -232,6 +232,8 @@
 
     /** Then, populate tree with categories. */
     category_list = gsb_data_category_get_categories_list ();
+    if ( category_list == NULL )
+        return;
 
     /* add first the empty category */
     category_list = g_slist_prepend ( category_list, gsb_data_category_get_empty_category ());

Index: tiers_onglet.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/tiers_onglet.c,v
retrieving revision 1.163
retrieving revision 1.164
diff -u -d -r1.163 -r1.164
--- tiers_onglet.c	22 Jul 2009 19:45:43 -0000	1.163
+++ tiers_onglet.c	28 Aug 2009 20:51:38 -0000	1.164
@@ -472,6 +472,9 @@
 
     /** Then, populate tree with payee. */
     payee_list_tmp = gsb_data_payee_get_payees_list ();
+    if ( payee_list_tmp == NULL )
+        return;
+
     payee_list_tmp = g_slist_prepend ( payee_list_tmp, gsb_data_payee_get_empty_payee ());
 
     while ( payee_list_tmp )

Index: gsb_assistant_first.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_assistant_first.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- gsb_assistant_first.c	8 May 2009 09:35:10 -0000	1.25
+++ gsb_assistant_first.c	28 Aug 2009 20:51:38 -0000	1.26
@@ -1,8 +1,8 @@
 /* ************************************************************************** */
 /*                                                                            */
-/*     Copyright (C)	2000-2008 Cédric Auger (cedric at grisbi.org)	      	  */
-/*			2003-2009 Benjamin Drieu (bdrieu at april.org)	      				  */
-/* 			http://www.grisbi.org				      						  */
+/*     Copyright (C)    2000-2008 Cédric Auger (cedric at grisbi.org)            */
+/*          2003-2009 Benjamin Drieu (bdrieu at april.org)	                      */
+/*          http://www.grisbi.org                                             */
 /*                                                                            */
 /*  This program is free software; you can redistribute it and/or modify      */
 /*  it under the terms of the GNU General Public License as published by      */
@@ -44,9 +44,9 @@
 
 /*START_STATIC*/
 static  gboolean gsb_assistant_first_enter_page_2 ( GtkWidget *assistant,
-						   gint new_page );
+                        gint new_page );
 static  gboolean gsb_assistant_first_enter_page_3 ( GtkWidget *assistant,
-						   gint new_page );
+                        gint new_page );
 static  GtkWidget *gsb_assistant_first_page_2 ( GtkWidget *assistant );
 static  GtkWidget *gsb_assistant_first_page_3 ( GtkWidget *assistant );
 /*END_STATIC*/
@@ -102,7 +102,7 @@
 
     /* now we launch the assistant */
     return_value = gsb_assistant_run (assistant);
-    gtk_widget_destroy (assistant);
+    gtk_widget_hide (assistant);
 
     if (return_value == GTK_RESPONSE_CANCEL)
     {
@@ -368,7 +368,7 @@
  * \return FALSE
  * */
 static gboolean gsb_assistant_first_enter_page_2 ( GtkWidget *assistant,
-						   gint new_page )
+                        gint new_page )
 {
     if ( result_reconcile == TRUE )
         gsb_assistant_change_button_next ( assistant, GTK_STOCK_GO_FORWARD, 
@@ -387,7 +387,7 @@
  * \return FALSE
  * */
 static gboolean gsb_assistant_first_enter_page_3 ( GtkWidget *assistant,
-						   gint new_page )
+                        gint new_page )
 {
     gsb_assistant_change_button_next ( assistant, GTK_STOCK_GO_FORWARD, 
 				       GTK_RESPONSE_APPLY );

Index: imputation_budgetaire.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/imputation_budgetaire.c,v
retrieving revision 1.158
retrieving revision 1.159
diff -u -d -r1.158 -r1.159
--- imputation_budgetaire.c	24 Aug 2009 13:56:59 -0000	1.158
+++ imputation_budgetaire.c	28 Aug 2009 20:51:38 -0000	1.159
@@ -244,6 +244,8 @@
 
     /** Then, populate tree with budgetary lines. */
     budget_list = gsb_data_budget_get_budgets_list ();
+    if ( budget_list == NULL )
+        return;
 
     /* add first the empty budget */
     budget_list = g_slist_prepend ( budget_list,



More information about the cvs mailing list