[grisbi-cvs] grisbi/src accueil.c, 1.192, 1.193 affichage.c, 1.150, 1.151 gsb_assistant_file.c, 1.14, 1.15 gsb_currency_config.c, 1.42, 1.43 gsb_data_account.c, 1.61, 1.62 gsb_file_config.c, 1.65, 1.66 gsb_file_config.h, 1.8, 1.9 gsb_file_load.c, 1.146, 1.147 gsb_file_save.c, 1.109, 1.110 gsb_select_icon.c, 1.7, 1.8 gsb_select_icon.h, 1.2, 1.3 main.c, 1.136, 1.137 utils_files.c, 1.34, 1.35

Pierre Biava pbiava at users.sourceforge.net
Sat Jan 24 18:57:00 CET 2009


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

Modified Files:
	accueil.c affichage.c gsb_assistant_file.c 
	gsb_currency_config.c gsb_data_account.c gsb_file_config.c 
	gsb_file_config.h gsb_file_load.c gsb_file_save.c 
	gsb_select_icon.c gsb_select_icon.h main.c utils_files.c 
Log Message:
corrections of bugs for the load of the logo
update strings fr.po


Index: gsb_currency_config.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_currency_config.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- gsb_currency_config.c	7 Jan 2009 21:18:55 -0000	1.42
+++ gsb_currency_config.c	24 Jan 2009 17:56:58 -0000	1.43
@@ -1374,7 +1374,7 @@
 
     if ( good )
     {
-        gchar* tmpstr = g_strdup_printf ( "gsb_currency_config_select_default: found '%s'",
+        gchar* tmpstr = g_strdup_printf ( "found '%s'",
 					conv -> int_curr_symbol );
 	devel_debug ( tmpstr );
 	g_free ( tmpstr );
@@ -1383,7 +1383,7 @@
 	return TRUE;
     }
 
-    gchar* tmpstr = g_strdup_printf ( "gsb_currency_config_select_default: failed to find '%s' in '%s'",
+    gchar* tmpstr = g_strdup_printf ( "failed to find '%s' in '%s'",
 				    conv -> int_curr_symbol, country );
     warning_debug (tmpstr);
     g_free ( tmpstr );

Index: gsb_select_icon.h
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_select_icon.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- gsb_select_icon.h	17 Jan 2009 07:23:53 -0000	1.2
+++ gsb_select_icon.h	24 Jan 2009 17:56:58 -0000	1.3
@@ -5,10 +5,14 @@
 /* START_INCLUDE_H */
 /* END_INCLUDE_H */
 
+#define LOGO_WIDTH 100
+#define LOGO_HEIGHT 100
+
 /* START_DECLARATION */
 gchar * gsb_select_icon_create_chaine_base64_from_pixbuf ( GdkPixbuf *pixbuf );
-void gsb_select_icon_create_pixbuf_from_chaine_base64 ( gchar *str_base64 );
+GdkPixbuf *gsb_select_icon_create_pixbuf_from_chaine_base64 ( gchar *str_base64 );
 gchar * gsb_select_icon_create_window ( gchar * name_icon );
+GdkPixbuf *gsb_select_icon_get_default_logo_pixbuf ( void );
 GdkPixbuf *gsb_select_icon_get_logo_pixbuf ( void );
 void gsb_select_icon_set_logo_pixbuf ( GdkPixbuf *pixbuf );
 /* END_DECLARATION */

Index: gsb_file_save.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_file_save.c,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -d -r1.109 -r1.110
--- gsb_file_save.c	17 Jan 2009 07:23:53 -0000	1.109
+++ gsb_file_save.c	24 Jan 2009 17:56:58 -0000	1.110
@@ -343,6 +343,7 @@
 					   &file_content,
 					   FALSE );
 
+    if ( etat.utilise_logo )
     iterator = gsb_file_save_logo_part ( iterator,
 					   &length_calculated,
 					   &file_content );
@@ -2397,11 +2398,15 @@
 					gulong *length_calculated,
 					gchar **file_content )
 {
+    GdkPixbuf *pixbuf = NULL;
     gchar *new_string;
     gchar * str64;
 
-    str64 = gsb_select_icon_create_chaine_base64_from_pixbuf (
-                            gsb_select_icon_get_logo_pixbuf ( ) );
+    pixbuf = gsb_select_icon_get_logo_pixbuf ( );
+    if ( ! pixbuf )
+        pixbuf = gsb_select_icon_get_default_logo_pixbuf ( );
+    
+    str64 = gsb_select_icon_create_chaine_base64_from_pixbuf ( pixbuf );
 
     new_string = g_markup_printf_escaped ( "\t<Logo\n"
                             "\t\tImage=\"%s\" />\n", 

Index: gsb_select_icon.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_select_icon.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- gsb_select_icon.c	18 Jan 2009 18:20:03 -0000	1.7
+++ gsb_select_icon.c	24 Jan 2009 17:56:58 -0000	1.8
@@ -2,7 +2,7 @@
 /*                                                                            */
 /*    copyright (c)	2000-2008 Cédric Auger (cedric at grisbi.org)	              */
 /*			2004-2009 Benjamin Drieu (bdrieu at april.org) 	                  */
-/*          2000-2009 Pierre Biava (pierre at pierre.biava.name                  */
+/*          2008-2009 Pierre Biava (pierre at pierre.biava.name                  */
 /*			                                                                  */
 /*			http://www.grisbi.org   			                              */
 /*                                                                            */
@@ -41,13 +41,14 @@
 static void gsb_select_icon_entry_text_changed ( GtkComboBoxEntry *entry,
                                           gpointer user_data );
 static GtkTreePath * gsb_select_icon_fill_icon_view (  gchar * name_icon );
+static GdkPixbuf *gsb_select_icon_resize_logo_pixbuf ( GdkPixbuf *pixbuf );
 static void gsb_select_icon_selection_changed ( GtkIconView *icon_view,
                                          gpointer user_data );
 static gchar * gsb_select_icon_troncate_name_icon ( gchar *name_icon, gint trunc );
 /*END_STATIC*/
 
 /*START_EXTERN*/
-extern GtkWidget *window ;
+extern GtkWidget *window;
 /*END_EXTERN*/
 
 static GtkWidget * dialog;
@@ -543,15 +544,18 @@
  * \param str_base64
  *
 * */
-void gsb_select_icon_create_pixbuf_from_chaine_base64 ( gchar *str_base64 )
+GdkPixbuf *gsb_select_icon_create_pixbuf_from_chaine_base64 ( gchar *str_base64 )
 {
     guchar *data;
     gsize longueur;
     GdkPixdata pixdata;
+    GdkPixbuf *pixbuf = NULL;
 
     data = g_base64_decode ( str_base64, &longueur );
     gdk_pixdata_deserialize( &pixdata, longueur, data, NULL );
-    pixbuf_logo = gdk_pixbuf_from_pixdata( &pixdata, TRUE, NULL );
+    pixbuf = gdk_pixbuf_from_pixdata( &pixdata, TRUE, NULL );
+
+    return pixbuf;
 }
 
 
@@ -560,9 +564,65 @@
     return pixbuf_logo;
 }
 
+
+GdkPixbuf *gsb_select_icon_get_default_logo_pixbuf ( void )
+{
+    GdkPixbuf *pixbuf = NULL;
+    GError *error = NULL;
+
+    pixbuf = gdk_pixbuf_new_from_file ( g_build_filename 
+                        (PIXMAPS_DIR, "grisbi-logo.png", NULL), &error );
+
+    if ( ! pixbuf )
+        devel_debug ( error -> message );
+
+    if ( gdk_pixbuf_get_width (pixbuf) > LOGO_WIDTH ||
+	     gdk_pixbuf_get_height (pixbuf) > LOGO_HEIGHT )
+    {
+        return gsb_select_icon_resize_logo_pixbuf ( pixbuf );
+	}
+    else
+        return pixbuf;
+}
+
+
 void gsb_select_icon_set_logo_pixbuf ( GdkPixbuf *pixbuf )
 {
     if ( pixbuf_logo != NULL )
         g_object_unref ( G_OBJECT ( pixbuf_logo ) );
-    pixbuf_logo = pixbuf ;
+
+    if ( gdk_pixbuf_get_width (pixbuf) > LOGO_WIDTH ||
+	     gdk_pixbuf_get_height (pixbuf) > LOGO_HEIGHT )
+	{
+        pixbuf_logo = gsb_select_icon_resize_logo_pixbuf ( pixbuf );
+	}
+    else
+        pixbuf_logo = pixbuf ;
+}
+
+
+GdkPixbuf *gsb_select_icon_resize_logo_pixbuf ( GdkPixbuf *pixbuf )
+{
+    GdkPixbuf * tmp;
+    gint ratio_width, ratio_height, ratio;
+
+    ratio_width = gdk_pixbuf_get_width ( pixbuf ) / LOGO_WIDTH;
+    if ( ( gdk_pixbuf_get_width ( pixbuf ) % LOGO_WIDTH ) > 0 )
+        ratio_width ++;
+    ratio_height = gdk_pixbuf_get_height ( pixbuf ) / LOGO_HEIGHT;
+    if ( ( gdk_pixbuf_get_width ( pixbuf ) % LOGO_HEIGHT ) > 0 )
+        ratio_height ++;
+    ratio = ( ratio_width > ratio_height ) ? ratio_width : ratio_height;
+    devel_debug_int ( ratio );
+
+    warning_debug ( "le logo est trop grand " );
+    tmp = gdk_pixbuf_new ( GDK_COLORSPACE_RGB, TRUE, 8,
+               gdk_pixbuf_get_width ( pixbuf )/ratio,
+               gdk_pixbuf_get_height ( pixbuf )/ratio );
+    tmp = gdk_pixbuf_scale_simple ( pixbuf,
+                        gdk_pixbuf_get_width ( pixbuf )/ratio,
+                        gdk_pixbuf_get_height ( pixbuf )/ratio,
+                        GDK_INTERP_HYPER );
+
+    return tmp;
 }

Index: affichage.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/affichage.c,v
retrieving revision 1.150
retrieving revision 1.151
diff -u -d -r1.150 -r1.151
--- affichage.c	17 Jan 2009 07:23:53 -0000	1.150
+++ affichage.c	24 Jan 2009 17:56:58 -0000	1.151
@@ -41,6 +41,7 @@
 #include "./structures.h"
 #include "./custom_list.h"
 #include "./utils_buttons.h"
+#include "./gsb_select_icon.h"
 #include "./include.h"
 #include "./erreur.h"
 /*END_INCLUDE*/
@@ -259,9 +260,9 @@
 				     GtkWidget *hbox )
 {
 
-    etat.utilise_logo = gtk_toggle_button_get_active ( GTK_TOGGLE_BUTTON ( check_button ));
-    gtk_widget_set_sensitive ( hbox,
-			       etat.utilise_logo );
+    etat.utilise_logo = gtk_toggle_button_get_active ( GTK_TOGGLE_BUTTON 
+                            ( check_button ));
+    gtk_widget_set_sensitive ( hbox, etat.utilise_logo );
 
     if ( etat.utilise_logo )
     {
@@ -275,6 +276,7 @@
             logo_accueil =  gtk_image_new_from_pixbuf ( 
                             gsb_select_icon_get_logo_pixbuf ( ) );
             gtk_box_pack_start ( GTK_BOX ( hbox_title ), logo_accueil, FALSE, FALSE, 0 );
+            gtk_widget_set_size_request ( hbox_title, -1, LOGO_HEIGHT + 20 );
             gtk_widget_show ( logo_accueil );
         }
     }
@@ -427,9 +429,9 @@
     {
         /* on change le logo */
         gchar * chemin_logo;
-        
+
+        gtk_container_remove (GTK_CONTAINER(logo_button), preview);
         chemin_logo = my_strdup ( (gchar *) selected_filename );
-        
         if ( !chemin_logo ||
              !strlen ( g_strstrip ( chemin_logo )) )
         {
@@ -442,7 +444,6 @@
         {
             /* Update preview */
             pixbuf = gdk_pixbuf_new_from_file (chemin_logo, NULL);
-            gtk_container_remove (GTK_CONTAINER(logo_button), preview);
             if (!pixbuf)
             {
                 if ( logo_accueil && GTK_IS_WIDGET ( logo_accueil ))
@@ -452,21 +453,10 @@
             }
             else
             {
-                if ( gdk_pixbuf_get_width(pixbuf) > 64 ||
-                 gdk_pixbuf_get_height(pixbuf) > 64)
-                {
-                    GdkPixbuf * tmp;
-                    tmp = gdk_pixbuf_new ( GDK_COLORSPACE_RGB, TRUE, 8,
-                                    gdk_pixbuf_get_width(pixbuf)/2,
-                                    gdk_pixbuf_get_height(pixbuf)/2 );
-                    gdk_pixbuf_scale ( pixbuf, tmp, 0, 0,
-                                gdk_pixbuf_get_width(pixbuf)/2,
-                                gdk_pixbuf_get_height(pixbuf)/2,
-                                0, 0, 0.5, 0.5, GDK_INTERP_HYPER );
-                    pixbuf = tmp;
-                }
                 gsb_select_icon_set_logo_pixbuf ( pixbuf );
-                preview = gtk_image_new_from_pixbuf ( pixbuf );
+                preview = gtk_image_new_from_pixbuf ( 
+                        gdk_pixbuf_scale_simple ( 
+                        pixbuf, 48, 48, GDK_INTERP_BILINEAR ) );
                 
                 /* Update homepage logo */
                 gtk_widget_destroy ( logo_accueil );
@@ -547,15 +537,16 @@
   if (!filename)
       return FALSE;
 
-  pixbuf = gdk_pixbuf_new_from_file_at_size (filename, 128, 128, NULL);
-  have_preview = (pixbuf != NULL);
+  pixbuf = gdk_pixbuf_new_from_file_at_size ( filename, 
+                        LOGO_WIDTH, LOGO_HEIGHT, NULL );
+  have_preview = ( pixbuf != NULL );
   g_free (filename);
 
-  gtk_image_set_from_pixbuf (GTK_IMAGE (preview), pixbuf);
-  if (pixbuf)
-    g_object_unref (pixbuf);
+  gtk_image_set_from_pixbuf ( GTK_IMAGE ( preview ), pixbuf );
+  if ( pixbuf )
+    g_object_unref ( pixbuf );
 
-  gtk_file_chooser_set_preview_widget_active (file_chooser, have_preview);
+  gtk_file_chooser_set_preview_widget_active ( file_chooser, have_preview );
   return FALSE;
 }
 

Index: gsb_assistant_file.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_assistant_file.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- gsb_assistant_file.c	26 Dec 2008 20:06:55 -0000	1.14
+++ gsb_assistant_file.c	24 Jan 2009 17:56:58 -0000	1.15
@@ -38,6 +38,7 @@
 #include "./gsb_currency.h"
 #include "./gsb_file.h"
 #include "./parametres.h"
+#include "./gsb_select_icon.h"
 #include "./import.h"
 #include "./traitement_variables.h"
 #include "./utils_files.h"
@@ -219,9 +220,14 @@
     gsb_category_assistant_create_categories (assistant);
 
     /* get the next assistant to launch */
-    launch_account_assistant = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button_create_account_next));
+    launch_account_assistant = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON 
+                        (button_create_account_next));
     gtk_widget_destroy (assistant);
 
+    /* initialise le logo accueil */
+    gsb_select_icon_set_logo_pixbuf ( 
+                        gsb_select_icon_get_default_logo_pixbuf ( ) );
+
     /* and now, launch the next assistant */
     if (launch_account_assistant)
 	gsb_file_new_finish ();
@@ -336,7 +342,6 @@
     gtk_container_add ( GTK_CONTAINER ( scrolled_window ),
 			textview );
 
-
     gtk_widget_show_all (page);
     return page;
 }

Index: accueil.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/accueil.c,v
retrieving revision 1.192
retrieving revision 1.193
diff -u -d -r1.192 -r1.193
--- accueil.c	17 Jan 2009 07:23:53 -0000	1.192
+++ accueil.c	24 Jan 2009 17:56:58 -0000	1.193
@@ -44,6 +44,7 @@
 #include "./structures.h"
 #include "./fenetre_principale.h"
 #include "./gsb_data_account.h"
+#include "./gsb_select_icon.h"
 #include "./include.h"
 #include "./erreur.h"
 #include "./gsb_real.h"
@@ -155,9 +156,13 @@
 	{
 	    logo_accueil =  gtk_image_new_from_pixbuf ( 
                     gsb_select_icon_get_logo_pixbuf ( ) );
+        if ( ! logo_accueil )
+            logo_accueil =  gtk_image_new_from_pixbuf ( 
+                    gsb_select_icon_get_default_logo_pixbuf ( ) );
 	    g_signal_connect ( G_OBJECT ( logo_accueil ), "destroy",
 	    			G_CALLBACK( gtk_widget_destroyed ), &logo_accueil);
 	    gtk_box_pack_start ( GTK_BOX ( hbox_title ), logo_accueil, FALSE, FALSE, 20 );
+        gtk_widget_set_size_request ( hbox_title, -1, LOGO_HEIGHT + 20 );
 	}
 
 	gtk_box_pack_end ( GTK_BOX ( hbox_title ), label_titre_fichier, TRUE, TRUE, 20 );

Index: gsb_data_account.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_data_account.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- gsb_data_account.c	10 Jan 2009 06:11:13 -0000	1.61
+++ gsb_data_account.c	24 Jan 2009 17:56:58 -0000	1.62
@@ -2590,13 +2590,7 @@
                            account_icon, NULL) );
 
     if ( ! pixbuf )
-    {
-        gchar* tmpstr = g_strconcat( "Erreur de pixbuf : " , 
-             error -> message, " image ",
-             account_icon, NULL );
-        devel_debug (tmpstr);
-        g_free ( tmpstr );
-    }
+        devel_debug ( error -> message );
 
     return pixbuf;
 }

Index: gsb_file_config.h
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_file_config.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- gsb_file_config.h	18 Jan 2009 18:20:03 -0000	1.8
+++ gsb_file_config.h	24 Jan 2009 17:56:58 -0000	1.9
@@ -7,11 +7,14 @@
 
 #define ETAT_WWW_BROWSER "firefox"
 
+/* mise en conformité avec les recommandations FreeDesktop. */
 #ifndef _WIN32
 #define C_GRISBIRC  (g_strconcat ( "/", PACKAGE, ".conf", NULL))
 #define C_OLD_GRISBIRC  (g_strconcat ( "/.", PACKAGE, "rc", NULL))
 #define C_PATH_CONFIG (g_strconcat (g_get_user_config_dir ( ), G_DIR_SEPARATOR_S,\
                         "grisbi", NULL))
+#define C_PATH_DATA_FILES (g_strconcat (g_get_user_data_dir ( ), G_DIR_SEPARATOR_S,\
+                        "grisbi", NULL))
 #else
 /* Some old Windows version have difficulties with dat starting file names */
 #define C_GRISBIRC  (g_strconcat ( "\\", PACKAGE, "rc", NULL))

Index: gsb_file_load.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_file_load.c,v
retrieving revision 1.146
retrieving revision 1.147
diff -u -d -r1.146 -r1.147
--- gsb_file_load.c	17 Jan 2009 07:23:53 -0000	1.146
+++ gsb_file_load.c	24 Jan 2009 17:56:58 -0000	1.147
@@ -152,8 +152,8 @@
 extern gint display_one_line;
 extern gint display_three_lines;
 extern gint display_two_lines;
-extern struct iso_4217_currency iso_4217_currencies[] ;
-extern GtkWidget *logo_accueil ;
+extern struct iso_4217_currency iso_4217_currencies[];
+extern GtkWidget *logo_accueil;
 extern gint no_devise_totaux_categ;
 extern gint no_devise_totaux_ib;
 extern gint no_devise_totaux_tiers;
@@ -585,8 +585,9 @@
     if ( !strcmp ( element_name,
 		   "Logo" ))
     {
-        gsb_file_load_logo_accueil ( attribute_names,
-					  attribute_values );
+        if ( etat.utilise_logo )
+            gsb_file_load_logo_accueil ( attribute_names,
+                        attribute_values );
     return;
     }
     /* the first time we come here, we check if it's a grisbi file */
@@ -4317,10 +4318,12 @@
         if ( !strcmp ( attribute_names[i],
                    "Image" ))
         {
-            gsb_select_icon_create_pixbuf_from_chaine_base64 ( (gchar *) 
-                                attribute_values[i] );
-            gtk_window_set_default_icon ( 
-                            gsb_select_icon_get_logo_pixbuf ( ) );
+            GdkPixbuf *pixbuf = NULL;
+
+            pixbuf = gsb_select_icon_create_pixbuf_from_chaine_base64 ( 
+                                (gchar *) attribute_values[i] );
+            gtk_window_set_default_icon ( pixbuf );
+            gsb_select_icon_set_logo_pixbuf ( pixbuf );
             devel_debug ("Chargement du logo");
             i++;
             continue;

Index: utils_files.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/utils_files.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- utils_files.c	17 Jan 2009 07:23:53 -0000	1.34
+++ utils_files.c	24 Jan 2009 17:56:58 -0000	1.35
@@ -121,6 +121,23 @@
 
 
 /**
+ * return the absolute path of where the data files should be located
+ * On UNIX platforms this is determined using the mechanisms described 
+ * in the  XDG Base Directory Specification
+ * on Windows based systems return APPDATA\Grisbi
+ * 
+ * \return the absolute path of the home directory
+ */
+gchar* my_get_XDG_grisbi_data_dir(void)
+{
+#ifndef _WIN32
+    return (gchar *) C_PATH_DATA_FILES;
+#else
+    return g_get_home_dir ();
+#endif
+}
+
+/**
  * return the absolute path of the default accounts files location
  * on Un*x based system return $HOME
  * on Windows based systems return "My Documents"

Index: main.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/main.c,v
retrieving revision 1.136
retrieving revision 1.137
diff -u -d -r1.136 -r1.137
--- main.c	18 Jan 2009 18:20:03 -0000	1.136
+++ main.c	24 Jan 2009 17:56:58 -0000	1.137
@@ -172,7 +172,7 @@
     init_variables ();
     register_import_formats ();
 
-    /* on crée ici le nouveau répertoire de conf  */
+    /* firt use ? */
     if ( ! gsb_file_config_load_config () )
         first_use = TRUE;
 

Index: gsb_file_config.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_file_config.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- gsb_file_config.c	24 Jan 2009 16:11:17 -0000	1.65
+++ gsb_file_config.c	24 Jan 2009 17:56:58 -0000	1.66
@@ -1150,7 +1150,7 @@
 
     etat.r_modifiable = 0;       /* on ne peux modifier les opé relevées */
     etat.dernier_fichier_auto = 1;   /*  on n'ouvre pas directement le dernier fichier */
-    etat.sauvegarde_auto = 0;    /* on ne sauvegarde pas automatiquement */
+    etat.sauvegarde_auto = 1;    /* on sauvegarde automatiquement par défaut pbiava 24/01/2009*/
     etat.entree = 1;    /* la touche entree provoque l'enregistrement de l'opération */
     nb_days_before_scheduled = 0;     /* nb de jours avant l'échéance pour prévenir */
     execute_scheduled_of_month = FALSE;
@@ -1174,7 +1174,7 @@
     etat.force_enregistrement = 1;     /* par défaut, on force l'enregistrement */
     gsb_file_update_last_path (g_get_home_dir ());
     gsb_file_set_backup_path (g_get_home_dir ());
-    etat.make_backup = FALSE;
+    etat.make_backup = 1;       /* on force aussi le backup pbiava le 24/01/2009*/
     etat.make_backup_every_minutes = FALSE;
     etat.make_backup_nb_minutes = 0;
 



More information about the cvs mailing list