[grisbi-cvs] grisbi/src balance_estimate_config.c, 1.17, 1.18 balance_estimate_data.c, 1.25, 1.26 balance_estimate_data.h, 1.16, 1.17 balance_estimate_future.c, 1.11, 1.12 balance_estimate_tab.c, 1.68, 1.69 gsb_data_account.c, 1.105, 1.106 gsb_data_account.h, 1.44, 1.45 gsb_file_load.c, 1.222, 1.223 gsb_file_save.c, 1.166, 1.167

Pierre Biava pbiava at users.sourceforge.net
Sat May 8 07:54:16 CEST 2010


Update of /cvsroot/grisbi/grisbi/src
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv16319/src

Modified Files:
	balance_estimate_config.c balance_estimate_data.c 
	balance_estimate_data.h balance_estimate_future.c 
	balance_estimate_tab.c gsb_data_account.c gsb_data_account.h 
	gsb_file_load.c gsb_file_save.c 
Log Message:
Adding the ability to manage the budget module per account. Bugfixes

Index: balance_estimate_config.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/balance_estimate_config.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- balance_estimate_config.c	4 May 2010 20:38:18 -0000	1.17
+++ balance_estimate_config.c	8 May 2010 05:54:13 -0000	1.18
@@ -60,6 +60,8 @@
 static void bet_config_period_clicked ( GtkWidget *togglebutton, GtkWidget *button );
 static gboolean bet_config_select_label_changed ( GtkWidget *checkbutton,
 						   gpointer data );
+static void bet_config_sensitive_account_parameters ( gint account_number, gboolean sensitive );
+static void bet_config_use_budget_toggle ( GtkToggleButton *button, GtkWidget *notebook );
 /*END_STATIC*/
 
 /*START_EXTERN*/
@@ -122,8 +124,10 @@
 {
     GtkWidget *notebook;
     GtkWidget *vbox_pref;
+    GtkWidget *vbox;
     GtkWidget *hbox;
     GtkWidget *combo;
+    GtkWidget *button;
     GtkWidget *paddingbox;
     GtkWidget *label;
     GtkWidget *widget;
@@ -138,7 +142,7 @@
     /* set the choice of account */
     paddingbox = new_paddingbox_with_title ( vbox_pref, FALSE,
                         _("Select an account") );
-    
+
     hbox = gtk_hbox_new ( FALSE, 5 );
     gtk_box_pack_start ( GTK_BOX ( paddingbox ), hbox, FALSE, FALSE, 5 );
 
@@ -156,10 +160,27 @@
         gsb_account_set_combo_account_number ( combo, account_number );
     gtk_box_pack_start ( GTK_BOX (hbox ), combo, FALSE, FALSE, 0 );
 
-        
-    /* set the choice of account */
-    paddingbox = new_paddingbox_with_title ( vbox_pref, FALSE,
-                        _("Data for the forecast") );
+    button = gtk_check_button_new_with_label ( _("Use the budget module") );
+    gtk_toggle_button_set_active ( GTK_TOGGLE_BUTTON ( button ), FALSE );
+    g_object_set_data ( G_OBJECT ( notebook ), "bet_use_budget", button );
+    gtk_box_pack_start ( GTK_BOX ( hbox ), button, FALSE, FALSE, 5 );
+    g_signal_connect ( G_OBJECT ( button ),
+			            "toggled",
+			            G_CALLBACK ( bet_config_use_budget_toggle ),
+			            combo );
+
+    gtk_widget_show_all ( vbox_pref );
+
+    vbox = gtk_vbox_new ( FALSE, 0 );
+    gtk_box_pack_start ( GTK_BOX ( vbox_pref ), vbox, FALSE, FALSE, 0 );
+    gtk_widget_show ( vbox );
+
+    /* Data for the forecast */
+    hbox = gtk_hbox_new ( FALSE, 0 );
+    gtk_box_pack_start ( GTK_BOX ( vbox ), hbox, FALSE, FALSE, 0 );
+    g_object_set_data ( G_OBJECT ( notebook ), "Data_for_forecast", hbox );
+
+    paddingbox = new_paddingbox_with_title ( hbox, FALSE, _("Data for the forecast") );
 
     /* Calculation of duration */
     widget = bet_config_get_duration_widget ( paddingbox );
@@ -168,13 +189,15 @@
     widget = bet_config_get_select_labels_widget ( paddingbox );
 
     /* Sources of historical data */
-    paddingbox = new_paddingbox_with_title ( vbox_pref, FALSE,
+    hbox = gtk_hbox_new ( FALSE, 0 );
+    gtk_box_pack_start ( GTK_BOX ( vbox ), hbox, FALSE, FALSE, 0 );
+    g_object_set_data ( G_OBJECT ( notebook ), "Data_for_historical", hbox );
+
+    paddingbox = new_paddingbox_with_title ( hbox, FALSE,
                         _("Sources of historical data") );
 
     widget = bet_config_get_select_historical_data ( paddingbox );
 
-    gtk_widget_show_all ( vbox_pref );
-
     bet_config_change_account ( combo, NULL );
 
     return vbox_pref;
@@ -685,6 +708,7 @@
     GtkWidget *button = NULL;
     gpointer ptr = NULL;
     gint account_number;
+    gint bet_use_budget;
     gint param;
     gint months;
 
@@ -692,9 +716,36 @@
     notebook = g_object_get_data ( G_OBJECT ( notebook_general ), "account_notebook" );
     account_number = gsb_account_get_combo_account_number ( combo );
 
+    widget = g_object_get_data ( G_OBJECT ( notebook ), "bet_use_budget" );
+    if ( !GTK_IS_TOGGLE_BUTTON ( widget ) )
+        return FALSE;
+
+    bet_use_budget = gsb_data_account_get_bet_use_budget ( account_number );
+    switch ( bet_use_budget )
+    {
+        case -1:
+            gtk_toggle_button_set_active ( GTK_TOGGLE_BUTTON ( widget ), FALSE );
+            gtk_widget_set_sensitive ( widget, FALSE );
+            bet_config_sensitive_account_parameters ( account_number, FALSE );
+            return FALSE;
+            break;
+        case 0:
+            gtk_widget_set_sensitive ( widget, TRUE );
+            gtk_toggle_button_set_active ( GTK_TOGGLE_BUTTON ( widget ), FALSE );
+            bet_config_sensitive_account_parameters ( account_number, FALSE );
+            return FALSE;
+            break;
+        case 1:
+            gtk_widget_set_sensitive ( widget, TRUE );
+            gtk_toggle_button_set_active ( GTK_TOGGLE_BUTTON ( widget ), TRUE );
+            bet_config_sensitive_account_parameters ( account_number, TRUE );
+            break;
+    }
+                    
     param = gsb_data_account_get_bet_spin_range ( account_number );
     months = gsb_data_account_get_bet_months ( account_number );
     button = g_object_get_data ( G_OBJECT ( notebook ), "bet_config_account_spin_button" );
+
     if ( button && G_IS_OBJECT ( button ) )
     {
         ptr = g_object_get_data ( G_OBJECT ( button ), "pointer" );
@@ -715,9 +766,9 @@
         }
         if ( button )
         {
-            gtk_spin_button_set_range ( GTK_SPIN_BUTTON ( button ), 1.0, 20.0 );
+            gtk_spin_button_set_range ( GTK_SPIN_BUTTON ( button ), 1.0, 240.0 );
             gtk_spin_button_set_value ( GTK_SPIN_BUTTON ( button ),
-                        (gdouble) months / 12.0 );
+                        (gdouble) months );
         }
     }
     else
@@ -818,6 +869,99 @@
 }
 
 
+/**
+ *
+ *
+ *
+ *
+ * */
+void bet_config_sensitive_account_parameters ( gint account_number, gboolean sensitive )
+{
+    GtkWidget *notebook;
+    GtkWidget *widget = NULL;
+
+    notebook = g_object_get_data ( G_OBJECT ( notebook_general ), "account_notebook" );
+
+    if ( sensitive )
+    {
+        kind_account kind;
+
+        kind = gsb_data_account_get_kind ( account_number );
+        switch ( kind )
+        {
+        case GSB_TYPE_BANK:
+            widget = g_object_get_data ( G_OBJECT ( notebook ), "Data_for_forecast" );
+            gtk_widget_show_all ( widget );
+            widget = g_object_get_data ( G_OBJECT ( notebook ), "Data_for_historical" );
+            gtk_widget_show_all ( widget );
+            break;
+        case GSB_TYPE_CASH:
+            widget = g_object_get_data ( G_OBJECT ( notebook ), "Data_for_forecast" );
+            gtk_widget_hide_all ( widget );
+            widget = g_object_get_data ( G_OBJECT ( notebook ), "Data_for_historical" );
+            gtk_widget_show_all ( widget );
+            break;
+        case GSB_TYPE_LIABILITIES:
+            break;
+        case GSB_TYPE_ASSET:
+            break;
+        }
+
+    }
+    else
+    {
+            widget = g_object_get_data ( G_OBJECT ( notebook ), "Data_for_forecast" );
+            gtk_widget_hide_all ( widget );
+            widget = g_object_get_data ( G_OBJECT ( notebook ), "Data_for_historical" );
+            gtk_widget_hide_all ( widget );
+    }
+}
+
+
+/**
+ *
+ *
+ *
+ *
+ * */
+void bet_config_use_budget_toggle ( GtkToggleButton *button, GtkWidget *combo )
+{
+    GtkWidget *notebook;
+    GtkWidget *widget;
+    gint account_number;
+
+    notebook = g_object_get_data ( G_OBJECT ( notebook_general ), "account_notebook" );
+    account_number = gsb_account_get_combo_account_number ( combo );
+
+    if ( gtk_toggle_button_get_active ( button ) )
+    {
+        gsb_data_account_set_bet_use_budget ( account_number, 1 );
+        bet_config_change_account ( combo, NULL );
+
+        bet_data_set_maj ( account_number, BET_MAJ_ALL );
+        if ( gsb_gui_navigation_get_current_account ( ) == account_number )
+            bet_data_select_bet_pages ( account_number );
+    }
+    else
+    {
+        gsb_data_account_set_bet_use_budget ( account_number, 0 );
+        widget = g_object_get_data ( G_OBJECT ( notebook ), "Data_for_forecast" );
+        gtk_widget_hide_all ( widget );
+        widget = g_object_get_data ( G_OBJECT ( notebook ), "Data_for_historical" );
+        gtk_widget_hide_all ( widget );
+
+        if ( gsb_gui_navigation_get_current_account ( ) == account_number )
+            bet_data_select_bet_pages ( account_number );
+    }
+}
+
+
+/**
+ *
+ *
+ *
+ *
+ * */
 /* Local Variables: */
 /* c-basic-offset: 4 */
 /* End: */

Index: gsb_file_save.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_file_save.c,v
retrieving revision 1.166
retrieving revision 1.167
diff -u -d -r1.166 -r1.167
--- gsb_file_save.c	4 May 2010 12:27:53 -0000	1.166
+++ gsb_file_save.c	8 May 2010 05:54:13 -0000	1.167
@@ -1083,6 +1083,7 @@
 					       "\t\tForm_lines_number=\"%d\"\n"
 					       "\t\tForm_organization=\"%s\"\n"
 					       "\t\tForm_columns_width=\"%s\"\n"
+                           "\t\tBet_use_budget=\"%d\"\n"
                            "\t\tBet_start_date=\"%s\"\n"
                            "\t\tBet_months=\"%d\"\n"
                            "\t\tBet_UT=\"%d\"\n"
@@ -1125,6 +1126,7 @@
 	    gsb_data_form_get_nb_rows (account_number),
 	    my_safe_null_str(form_organization),
 	    my_safe_null_str(form_columns_width),
+        gsb_data_account_get_bet_use_budget ( account_number ),
         my_safe_null_str ( gsb_format_gdate_safe (
                         gsb_data_account_get_bet_start_date ( account_number ) ) ),
         gsb_data_account_get_bet_months ( account_number ),

Index: balance_estimate_data.h
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/balance_estimate_data.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- balance_estimate_data.h	4 May 2010 12:27:52 -0000	1.16
+++ balance_estimate_data.h	8 May 2010 05:54:13 -0000	1.17
@@ -139,6 +139,7 @@
 gboolean bet_data_transfert_modify_line ( struct_transfert_data *transfert );
 gboolean bet_data_transfert_remove_line ( gint account_number, gint number );
 gboolean bet_data_transfert_set_line_from_file ( struct_transfert_data *transfert );
+void bet_data_transfert_update_date_if_necessary ( struct_transfert_data *transfert );
 void struct_free_bet_historical ( SH *sh );
 struct_futur_data *struct_initialise_bet_future ( void );
 SBR *struct_initialise_bet_range ( void );

Index: gsb_data_account.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_data_account.c,v
retrieving revision 1.105
retrieving revision 1.106
diff -u -d -r1.105 -r1.106
--- gsb_data_account.c	4 May 2010 20:38:18 -0000	1.105
+++ gsb_data_account.c	8 May 2010 05:54:13 -0000	1.106
@@ -117,6 +117,7 @@
     gpointer 	form_organization;
 
     /** @name bet data */
+    gint bet_use_budget;            /* 1 = use the budget module */
     GDate *bet_start_date;              /* date de début */
     gint bet_spin_range;                /* echelle de la période 0 = mois 1 = années */
     gint bet_months;                    /* nombre de mois ou d'années */
@@ -3057,7 +3058,7 @@
 
     account = gsb_data_account_get_structure ( account_number );
 
-    if (!account )
+    if ( !account )
 	    return FALSE;
 
     account -> bet_auto_inc_month = auto_inc_month;
@@ -3156,9 +3157,61 @@
     }
 
     g_date_free ( tmp_date );
+    g_date_free ( date_jour );
 
     return FALSE;
 }
+
+
+/**
+ * retourne le bit utilisation du module budget. 
+ *
+ *  -1 pas de module possible 0 non utilisé 1 utilisé
+ * */
+gint gsb_data_account_get_bet_use_budget ( gint account_number )
+{
+    struct_account *account;
+    kind_account kind;
+
+    account = gsb_data_account_get_structure ( account_number );
+
+    if (!account )
+	    return 0;
+
+    kind = account -> account_kind;
+
+    switch ( kind )
+    {
+        case GSB_TYPE_BANK:
+        case GSB_TYPE_CASH:
+        case GSB_TYPE_LIABILITIES:
+            return account -> bet_use_budget;
+            break;
+        case GSB_TYPE_ASSET:
+            return -1;
+            break;
+        default:
+            return -1;
+            break;
+    }
+
+    return -1;
+}
+
+
+gboolean gsb_data_account_set_bet_use_budget ( gint account_number, gint value )
+{
+    struct_account *account;
+
+    account = gsb_data_account_get_structure ( account_number );
+
+    if ( !account )
+	    return FALSE;
+
+    account -> bet_use_budget = value;
+
+    return TRUE;
+}
 /* Local Variables: */
 /* c-basic-offset: 4 */
 /* End: */

Index: gsb_file_load.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_file_load.c,v
retrieving revision 1.222
retrieving revision 1.223
diff -u -d -r1.222 -r1.223
--- gsb_file_load.c	4 May 2010 12:27:53 -0000	1.222
+++ gsb_file_load.c	8 May 2010 05:54:13 -0000	1.223
@@ -1819,6 +1819,14 @@
         continue;
     }
 
+    if ( !strcmp ( attribute_names[i], "Bet_use_budget" ))
+    {
+        gsb_data_account_set_bet_use_budget ( account_number,
+                        utils_str_atoi ( attribute_values[i] ) );
+        i++;
+        continue;
+    }
+
     if ( !strcmp ( attribute_names[i], "Bet_start_date" ))
     {
         gsb_data_account_set_bet_start_date ( account_number,

Index: balance_estimate_data.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/balance_estimate_data.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- balance_estimate_data.c	4 May 2010 20:38:18 -0000	1.25
+++ balance_estimate_data.c	8 May 2010 05:54:13 -0000	1.26
@@ -183,7 +183,22 @@
     if ( g_strcmp0 ( label, "forecast_page" ) == 0 )
         bet_array_update_estimate_tab ( account_number );
     else if ( g_strcmp0 ( label, "historical_page" ) == 0 )
-        bet_array_update_estimate_tab ( account_number );
+    {
+        GtkWidget * widget;
+        gchar *title;
+        kind_account kind;
+
+        kind = gsb_data_account_get_kind ( account_number );
+        title = g_strdup_printf (
+                        _("Please select the data source for the account: \"%s\""),
+                        gsb_data_account_get_name ( account_number ) );
+        widget = GTK_WIDGET ( g_object_get_data ( G_OBJECT ( notebook ), "bet_hist_title") );
+        gtk_label_set_label ( GTK_LABEL ( widget ), title );
+        g_free ( title );
+
+        if ( kind != GSB_TYPE_CASH )
+            bet_array_update_estimate_tab ( account_number );
+    }
 }
 
 
@@ -1016,21 +1031,33 @@
     GtkWidget *page;
     kind_account kind;
     gint current_page;
+    gint bet_use_budget;
 
     notebook = g_object_get_data ( G_OBJECT ( notebook_general ), "account_notebook");
     kind = gsb_data_account_get_kind ( account_number );
     current_page = gtk_notebook_get_current_page ( GTK_NOTEBOOK ( notebook ) );
+    bet_use_budget = gsb_data_account_get_bet_use_budget ( account_number );
+    if ( bet_use_budget <= 0 )
+        kind = GSB_TYPE_ASSET;
 
     switch ( kind )
     {
     case GSB_TYPE_BANK:
-    case GSB_TYPE_CASH:
         page = gtk_notebook_get_nth_page ( GTK_NOTEBOOK ( notebook ), 1 );
         gtk_widget_show ( page );
         page = gtk_notebook_get_nth_page ( GTK_NOTEBOOK ( notebook ), 2 );
         gtk_widget_show ( page );
         bet_data_set_maj ( account_number, BET_MAJ_ALL );
         break;
+    case GSB_TYPE_CASH:
+        page = gtk_notebook_get_nth_page ( GTK_NOTEBOOK ( notebook ), 1 );
+        gtk_widget_hide ( page );
+        page = gtk_notebook_get_nth_page ( GTK_NOTEBOOK ( notebook ), 2 );
+        gtk_widget_show ( page );
+        if ( current_page == 1 )
+            gtk_notebook_set_current_page ( GTK_NOTEBOOK ( notebook ), 2 );
+        bet_data_set_maj ( account_number, BET_MAJ_HISTORICAL );
+        break;
     case GSB_TYPE_LIABILITIES:
         page = gtk_notebook_get_nth_page ( GTK_NOTEBOOK ( notebook ), 1 );
         gtk_widget_show ( page );
@@ -1656,6 +1683,46 @@
 }
 
 
+/**
+ *
+ *
+ *
+ *
+ * */
+void bet_data_transfert_update_date_if_necessary ( struct_transfert_data *transfert )
+{
+    GDate *date_jour;
+    GDate *tmp_date;
+
+    date_jour = gdate_today ( );
+    tmp_date = gsb_date_copy ( transfert -> date );
+    g_date_add_months ( tmp_date, 1 );
+
+    if ( g_date_compare ( date_jour, tmp_date ) >= 0 )
+    {
+        if ( g_date_get_month ( date_jour ) == g_date_get_month ( tmp_date ) )
+        {
+            g_date_free ( transfert -> date );
+            g_date_free ( date_jour );
+            transfert -> date = tmp_date;
+        }
+        else
+        {
+            g_date_set_day ( date_jour, g_date_get_day ( tmp_date ) );
+            g_date_free ( transfert -> date );
+            g_date_free ( tmp_date );
+            transfert -> date =  date_jour;
+        }
+        bet_data_transfert_modify_line ( transfert );
+    }
+    else
+    {
+        g_date_free ( tmp_date );
+        g_date_free ( date_jour );
+    }
+}
+
+
 /* Local Variables: */
 /* c-basic-offset: 4 */
 /* End: */

Index: balance_estimate_tab.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/balance_estimate_tab.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -d -r1.68 -r1.69
--- balance_estimate_tab.c	4 May 2010 20:38:18 -0000	1.68
+++ balance_estimate_tab.c	8 May 2010 05:54:13 -0000	1.69
@@ -1939,6 +1939,9 @@
 
     gtk_widget_grab_focus ( tree_view );
     gtk_tree_selection_select_path ( selection, path );
+    gtk_tree_view_scroll_to_cell ( GTK_TREE_VIEW ( tree_view ),
+				   path, NULL,
+				   FALSE, 0.0, 0.0 );
 
     gtk_tree_path_free ( path );
 
@@ -2480,6 +2483,9 @@
         if ( account_number != transfert -> account_number )
             continue;
 
+        if ( transfert -> auto_inc_month )
+            bet_data_transfert_update_date_if_necessary ( transfert );
+
         if ( g_date_compare ( transfert -> date, date_max ) > 0 )
             continue;
         if ( g_date_compare ( transfert -> date, date_min ) < 0 )

Index: balance_estimate_future.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/balance_estimate_future.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- balance_estimate_future.c	4 May 2010 20:38:18 -0000	1.11
+++ balance_estimate_future.c	8 May 2010 05:54:13 -0000	1.12
@@ -96,7 +96,7 @@
 static gboolean bet_future_set_form_data_from_line ( gint account_number,
                         gint number  );
 static gboolean bet_future_take_data_from_form (  struct_futur_data *scheduled );
-static void bet_transfert_auto_inc_toggle ( GtkToggleButton *button, gpointer data );
+//~ static void bet_transfert_auto_inc_toggle ( GtkToggleButton *button, gpointer data );
 static GtkWidget *bet_transfert_create_account_list_part ( GtkWidget *dialog, gint account_number );
 static GtkWidget *bet_transfert_create_dialog ( gint account_number );
 static gboolean bet_transfert_entry_lose_focus ( GtkWidget *entry,
@@ -1894,11 +1894,11 @@
     button = gtk_check_button_new_with_label ( _("Monthly auto-increment") );
     gtk_toggle_button_set_active ( GTK_TOGGLE_BUTTON ( button ), FALSE );
     g_object_set_data ( G_OBJECT ( dialog ), "bet_transfert_auto_inc", button );
-    gtk_box_pack_start ( GTK_BOX ( hbox ), button, FALSE, FALSE, 5 );
-    g_signal_connect ( G_OBJECT ( button ),
-			            "toggled",
-			            G_CALLBACK ( bet_transfert_auto_inc_toggle ),
-			            NULL );
+    //~ gtk_box_pack_start ( GTK_BOX ( hbox ), button, FALSE, FALSE, 5 );
+    //~ g_signal_connect ( G_OBJECT ( button ),
+			            //~ "toggled",
+			            //~ G_CALLBACK ( bet_transfert_auto_inc_toggle ),
+			            //~ NULL );
 
     /* check button replace planned line */
     button = gtk_check_button_new_with_label ( 
@@ -2457,13 +2457,13 @@
  *
  *
  * */
-void bet_transfert_auto_inc_toggle ( GtkToggleButton *button, gpointer data )
-{
-
-
-
+//~ void bet_transfert_auto_inc_toggle ( GtkToggleButton *button, gpointer data )
+//~ {
+    //~ gint account_number;
 
-}
+    //~ account_number = gsb_gui_navigation_get_current_account ( );
+    //~ bet_data_set_maj ( account_number, BET_MAJ_ESTIMATE );
+//~ }
 
 
 /**

Index: gsb_data_account.h
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_data_account.h,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- gsb_data_account.h	17 Apr 2010 15:37:03 -0000	1.44
+++ gsb_data_account.h	8 May 2010 05:54:13 -0000	1.45
@@ -50,6 +50,7 @@
 gint gsb_data_account_get_bet_select_label ( gint account_number, gint origine );
 gint gsb_data_account_get_bet_spin_range ( gint account_number );
 GDate *gsb_data_account_get_bet_start_date ( gint account_number );
+gint gsb_data_account_get_bet_use_budget ( gint account_number );
 gint gsb_data_account_get_closed_account ( gint account_number );
 gchar *gsb_data_account_get_comment ( gint account_number );
 gint gsb_data_account_get_currency ( gint account_number );
@@ -112,6 +113,7 @@
                         gint type );
 gboolean gsb_data_account_set_bet_spin_range ( gint account_number, gint spin_range );
 gboolean gsb_data_account_set_bet_start_date ( gint account_number, const GDate *date );
+gboolean gsb_data_account_set_bet_use_budget ( gint account_number, gint value );
 gboolean gsb_data_account_set_closed_account ( gint account_number,
                         gint closed_account );
 gboolean gsb_data_account_set_comment ( gint account_number,



More information about the cvs mailing list