rem: gint report_number; gint amount_comparison_number; GtkWidget *dialog; gint resultat; GtkWidget *frame; GtkWidget *option_menu; GtkWidget *menu; GtkWidget *menu_item; GtkWidget *label_description;
add: gint report_number, amount_comparison_number, resultat; GtkWidget *dialog, *frame, *option_menu, *menu, *menu_item, *label_description;
context: gboolean ajout_etat ( void ){    gint report_number;    gint amount_comparison_number;    GtkWidget *dialog;    gint resultat;    GtkWidget *frame;    GtkWidget *option_menu;    GtkWidget *menu;    GtkWidget *menu_item;    GtkWidget *label_description;    GtkWidget *scrolled_window;    if ( gtk_notebook_get_current_page ( GTK_NOTEBOOK ( notebook_general)) != 7 )	gtk_notebook_set_page ( GTK_NOTEBOOK ( notebook_general),				7 );    dialog = dialogue_special_no_run ( GTK_MESSAGE_QUESTION,				       GTK_BUTTONS_OK_CANCEL,				       make_hint ( _("Choose template for new report"),						   _("You are about to create a new report.  For convenience, you can choose between the following templates.  Reports may be customized later." ) ) );    frame = new_paddingbox_with_title ( GTK_DIALOG(dialog)->vbox, FALSE,					_("Report type"));    /* on commence par créer l'option menu */    option_menu = gtk_option_menu_new ();    gtk_box_pack_start ( GTK_BOX(frame), option_menu, FALSE, FALSE, 0 );    /* On met une ligne blanche entre les paddingboxes */    /*   gtk_box_pack_start ( GTK_BOX(frame), gtk_label_new(""), FALSE, FALSE, 6 ); */    /* on ajoute maintenant la frame */    frame = new_paddingbox_with_title ( GTK_DIALOG(dialog)->vbox, TRUE,					_("Description"));    /* on met le label dans une scrolled window */    scrolled_window = gtk_scrolled_window_new ( FALSE, FALSE );    gtk_scrolled_window_set_policy ( GTK_SCROLLED_WINDOW ( scrolled_window ),				     GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC );    gtk_box_pack_start ( GTK_BOX(frame), scrolled_window, TRUE, TRUE, 6 );    /* on ajoute maintenant le label */    label_description = gtk_label_new ( "" );    gtk_misc_set_alignment ( GTK_MISC ( label_description ), 0, 0 );    gtk_label_set_line_wrap ( GTK_LABEL ( label_description ), TRUE );    gtk_scrolled_window_add_with_viewport ( GTK_SCROLLED_WINDOW ( scrolled_window ),					    label_description );    gtk_viewport_set_shadow_type ( GTK_VIEWPORT ( label_description -> parent ),				   GTK_SHADOW_NONE );    /* on crée ici le menu qu'on ajoute à l'option menu */    menu = gtk_menu_new ();    menu_item = gtk_menu_item_new_with_label ( _("Last month incomes and outgoings"));    gtk_menu_append ( GTK_MENU ( menu ), menu_item );    gtk_object_set_data ( GTK_OBJECT ( menu_item ), "no_etat",			  GINT_TO_POINTER ( 0 ));    gtk_signal_connect ( GTK_OBJECT ( menu_item ), "activate",			 GTK_SIGNAL_FUNC ( change_choix_nouvel_etat ),			 GTK_OBJECT ( label_description ));    /* on met le texte du 1er choix */    change_choix_nouvel_etat ( menu_item, label_description );    menu_item = gtk_menu_item_new_with_label ( _("Current month incomes and outgoings"));    gtk_menu_append ( GTK_MENU ( menu ), menu_item )	; gtk_object_set_data ( GTK_OBJECT ( menu_item ), "no_etat",				GINT_TO_POINTER ( 1 ));    gtk_signal_connect ( GTK_OBJECT ( menu_item ), "activate",			 GTK_SIGNAL_FUNC ( change_choix_nouvel_etat ),			 GTK_OBJECT ( label_description ));    menu_item = gtk_menu_item_new_with_label ( _("Annual budget"));    gtk_menu_append ( GTK_MENU ( menu ), menu_item );    gtk_object_set_data ( GTK_OBJECT ( menu_item ), "no_etat",			  GINT_TO_POINTER ( 2 ));    gtk_signal_connect ( GTK_OBJECT ( menu_item ), "activate",			 GTK_SIGNAL_FUNC ( change_choix_nouvel_etat ),			 GTK_OBJECT ( label_description ));    menu_item = gtk_menu_item_new_with_label ( _("Cheques deposit"));    gtk_menu_append ( GTK_MENU ( menu ), menu_item );    gtk_object_set_data ( GTK_OBJECT ( menu_item ), "no_etat",			  GINT_TO_POINTER ( 4 ));    gtk_signal_connect ( GTK_OBJECT ( menu_item ), "activate",			 GTK_SIGNAL_FUNC ( change_choix_nouvel_etat ),			 GTK_OBJECT ( label_description ));    menu_item = gtk_menu_item_new_with_label ( _("Monthly outgoings by payee"));    gtk_menu_append ( GTK_MENU ( menu ), menu_item );    gtk_object_set_data ( GTK_OBJECT ( menu_item ), "no_etat",			  GINT_TO_POINTER ( 5 ));    gtk_signal_connect ( GTK_OBJECT ( menu_item ), "activate",			 GTK_SIGNAL_FUNC ( change_choix_nouvel_etat ),			 GTK_OBJECT ( label_description ));    menu_item = gtk_menu_item_new_with_label ( _("Search"));    gtk_menu_append ( GTK_MENU ( menu ), menu_item );    gtk_object_set_data ( GTK_OBJECT ( menu_item ), "no_etat",			  GINT_TO_POINTER ( 6 ));    gtk_signal_connect ( GTK_OBJECT ( menu_item ), "activate",			 GTK_SIGNAL_FUNC ( change_choix_nouvel_etat ),			 GTK_OBJECT ( label_description ));    menu_item = gtk_menu_item_new_with_label ( _("Blank report"));    gtk_menu_append ( GTK_MENU ( menu ), menu_item );    gtk_object_set_data ( GTK_OBJECT ( menu_item ), "no_etat",			  GINT_TO_POINTER ( 3 ));    gtk_signal_connect ( GTK_OBJECT ( menu_item ), "activate",			 GTK_SIGNAL_FUNC ( change_choix_nouvel_etat ),			 GTK_OBJECT ( label_description ));    gtk_option_menu_set_menu ( GTK_OPTION_MENU ( option_menu ), menu );    gtk_box_set_spacing ( GTK_BOX(GTK_DIALOG(dialog)->vbox), 6 );    gtk_widget_show_all ( dialog );    /* on attend le choix de l'utilisateur */    resultat = gtk_dialog_run ( GTK_DIALOG ( dialog ));    if ( resultat != GTK_RESPONSE_OK )    {	gtk_widget_destroy ( dialog );	return FALSE;    }    /* get the wanted report */    resultat = GPOINTER_TO_INT ( gtk_object_get_data ( GTK_OBJECT ( GTK_OPTION_MENU ( option_menu ) -> menu_item ),						       "no_etat" ));    gtk_widget_destroy ( GTK_WIDGET ( dialog ));    /* create and fill the new report */    switch ( resultat )    {	case 0:	    /*  Previous month incomes and outgoings  */	    report_number = gsb_data_report_new (_("Previous month incomes and outgoings"));	    gsb_data_report_set_split_credit_debit ( report_number,						     1 );	    gsb_data_report_set_date_type ( report_number,					    7 );	    /*   le classement de base est 1-2-3-4-5-6 */	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 1 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 2 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 3 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 4 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 5 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 6 )));	    gsb_data_report_set_transfer_choice ( report_number,						  2 );	    gsb_data_report_set_category_used ( report_number,						1 );	    gsb_data_report_set_category_show_sub_category ( report_number,							     1 );	    gsb_data_report_set_category_show_category_amount ( report_number,								1 );	    gsb_data_report_set_category_show_sub_category_amount ( report_number,								    1 );	    gsb_data_report_set_category_show_without_category ( report_number,								 1 );	    gsb_data_report_set_category_show_name ( report_number,						     1 );	    /*   les devises sont à 1 (euro) */	    gsb_data_report_set_currency_general ( report_number,						   1 );	    gsb_data_report_set_category_currency ( report_number,						    1 );	    gsb_data_report_set_budget_currency ( report_number,						  1 );	    gsb_data_report_set_payee_currency ( report_number,						 1 );	    gsb_data_report_set_amount_comparison_currency ( report_number,							     1 );	    break;	case 1:	    /*  Current month incomes and outgoings */	    report_number = gsb_data_report_new (_("Current month incomes and outgoings"));	    gsb_data_report_set_split_credit_debit ( report_number,						     1 );	    gsb_data_report_set_date_type ( report_number,					    3 );	    /*   le classement de base est 1-2-3-4-5-6 (cf structure.h) */	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 1 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 2 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 3 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 4 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 5 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 6 )));	    gsb_data_report_set_transfer_choice ( report_number,						  2 );	    gsb_data_report_set_category_used ( report_number,						1 );	    gsb_data_report_set_category_show_sub_category ( report_number,							     1 );	    gsb_data_report_set_category_show_category_amount ( report_number,								1 );	    gsb_data_report_set_category_show_sub_category_amount ( report_number,								    1 );	    gsb_data_report_set_category_show_without_category ( report_number,								 1 );	    gsb_data_report_set_category_show_name ( report_number,						     1 );	    /*   les devises sont à 1 (euro) */	    gsb_data_report_set_currency_general ( report_number,						   1 );	    gsb_data_report_set_category_currency ( report_number,						    1 );	    gsb_data_report_set_budget_currency ( report_number,						  1 );	    gsb_data_report_set_payee_currency ( report_number,						 1 );	    gsb_data_report_set_amount_comparison_currency ( report_number,							     1 );	    break;	case 2:	    /* Annual budget */	    report_number = gsb_data_report_new (_("Annual budget"));	    /*   le classement de base est 1-2-3-4-5-6 (cf structure.h) */	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 1 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 2 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 3 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 4 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 5 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 6 )));	    /*   les devises sont à 1 (euro) */	    gsb_data_report_set_currency_general ( report_number,						   1 );	    gsb_data_report_set_category_currency ( report_number,						    1 );	    gsb_data_report_set_budget_currency ( report_number,						  1 );	    gsb_data_report_set_payee_currency ( report_number,						 1 );	    gsb_data_report_set_amount_comparison_currency ( report_number,							     1 );	    gsb_data_report_set_split_credit_debit ( report_number,						     1 );	    gsb_data_report_set_date_type ( report_number,					    4 );	    gsb_data_report_set_category_used ( report_number,						1 );	    gsb_data_report_set_category_only_report_with_category ( report_number,								     1 );	    gsb_data_report_set_category_show_category_amount ( report_number,								1 );	    gsb_data_report_set_category_show_sub_category ( report_number,							     1 );	    gsb_data_report_set_category_show_without_category ( report_number,								 1 );	    gsb_data_report_set_category_show_sub_category_amount ( report_number,								    1 );	    gsb_data_report_set_category_show_name ( report_number,						     1 );	    gsb_data_report_set_amount_comparison_only_report_non_null ( report_number,									 1 );	    /*   tout le reste est à NULL, ce qui est très bien */	    break;	case 3:	    /* New report */	    report_number = gsb_data_report_new (_("New report"));	    /*   le classement de base est 1-2-3-4-5-6  */	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 1 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 2 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 3 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 4 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 5 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 6 )));	    /*   les devises sont à 1 (euro) */	    gsb_data_report_set_currency_general ( report_number,						   1 );	    gsb_data_report_set_category_currency ( report_number,						    1 );	    gsb_data_report_set_budget_currency ( report_number,						  1 );	    gsb_data_report_set_payee_currency ( report_number,						 1 );	    gsb_data_report_set_amount_comparison_currency ( report_number,							     1 );	    gsb_data_report_set_show_report_transactions ( report_number,							   1 );	    gsb_data_report_set_show_report_date ( report_number,						   1 );	    gsb_data_report_set_show_report_payee ( report_number,						    1 );	    gsb_data_report_set_show_report_category ( report_number,						       1 );	    gsb_data_report_set_split_credit_debit ( report_number,						     1 );	    gsb_data_report_set_transfer_choice ( report_number,						  2 );	    gsb_data_report_set_category_used ( report_number,						1 );	    gsb_data_report_set_category_show_category_amount ( report_number,								1 );	    gsb_data_report_set_category_show_sub_category ( report_number,							     1 );	    gsb_data_report_set_category_show_sub_category_amount ( report_number,								    1 );	    gsb_data_report_set_category_show_name ( report_number,						     1 );	    gsb_data_report_set_amount_comparison_only_report_non_null ( report_number,									 1 );	    /*   tout le reste est à NULL, ce qui est très bien */	    break;	case 4:	    /* Cheques deposit */	    report_number = gsb_data_report_new (_("Cheques deposit"));	    /*   le classement de base est 1-2-3-4-5-6 (cf structure.h) */	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 1 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 2 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 3 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 4 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 5 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 6 )));	    /*   les devises sont à 1 (euro) */	    gsb_data_report_set_currency_general ( report_number,						   1 );	    gsb_data_report_set_category_currency ( report_number,						    1 );	    gsb_data_report_set_budget_currency ( report_number,						  1 );	    gsb_data_report_set_payee_currency ( report_number,						 1 );	    gsb_data_report_set_amount_comparison_currency ( report_number,							     1 );	    gsb_data_report_set_show_report_transactions ( report_number,							   1 );	    gsb_data_report_set_show_report_transaction_amount ( report_number,								 1 );	    gsb_data_report_set_show_report_payee ( report_number,						    1 );	    gsb_data_report_set_show_report_bank_references ( report_number,							      1 );	    gsb_data_report_set_transfer_choice ( report_number,						  2 );	    gsb_data_report_set_amount_comparison_only_report_non_null ( report_number,									 1 );	    gsb_data_report_set_amount_comparison_used ( report_number,							 1 );	    /* on doit créer une structure de montant qui dit que ça va être positif */	    amount_comparison_number = gsb_data_report_amount_comparison_new (0);	    gsb_data_report_amount_comparison_set_report_number ( amount_comparison_number,								  report_number);	    gsb_data_report_amount_comparison_set_link_to_last_amount_comparison ( amount_comparison_number,										   -1 );	    gsb_data_report_amount_comparison_set_first_comparison ( amount_comparison_number,								     8 );	    gsb_data_report_amount_comparison_set_link_first_to_second_part ( amount_comparison_number,									      3 );	    gsb_data_report_set_amount_comparison_list ( report_number,							 g_slist_append ( gsb_data_report_get_amount_comparison_list (report_number),									  GINT_TO_POINTER (amount_comparison_number)));	    /*   tout le reste est à NULL, ce qui est très bien */	    break;	case 5:	    /* Monthly outgoings by payee */	    report_number = gsb_data_report_new (_("Monthly outgoings by payee"));	    /*   le classement de base est 1-2-3-4-5-6  */	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 6 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 1 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 2 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 3 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 4 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 5 )));	    /*   les devises sont à 1 (euro) */	    gsb_data_report_set_currency_general ( report_number,						   1 );	    gsb_data_report_set_category_currency ( report_number,						    1 );	    gsb_data_report_set_budget_currency ( report_number,						  1 );	    gsb_data_report_set_payee_currency ( report_number,						 1 );	    gsb_data_report_set_amount_comparison_currency ( report_number,							     1 );	    gsb_data_report_set_show_report_transactions ( report_number,							   1 );	    gsb_data_report_set_show_report_transaction_amount ( report_number,								 1 );	    gsb_data_report_set_show_report_payee ( report_number,						    1 );	    gsb_data_report_set_sorting_report ( report_number,						 2 );	    gsb_data_report_set_column_title_show ( report_number,						    1 );	    gsb_data_report_set_date_type ( report_number,					    7 );	    gsb_data_report_set_category_used ( report_number,						1 );	    gsb_data_report_set_category_show_category_amount ( report_number,								1 );	    gsb_data_report_set_category_show_sub_category ( report_number,							     1 );	    gsb_data_report_set_category_show_name ( report_number,						     1 );	    gsb_data_report_set_show_report_date ( report_number,						   1 );	    gsb_data_report_set_show_report_category ( report_number,						       1 );	    gsb_data_report_set_split_credit_debit ( report_number,						     1 );	    gsb_data_report_set_transfer_choice ( report_number,						  2 );	    gsb_data_report_set_category_show_sub_category_amount ( report_number,								    1 );	    gsb_data_report_set_amount_comparison_only_report_non_null ( report_number,									 1 );	    gsb_data_report_set_payee_used ( report_number,					     1 );	    gsb_data_report_set_payee_show_payee_amount ( report_number,							  1 );	    gsb_data_report_set_payee_show_name ( report_number,						  1 );	    /*   tout le reste est à NULL, ce qui est très bien */	    break;	case 6:	    /* Search */	    report_number = gsb_data_report_new (_("Search"));	    /*   le classement de base est 1-2-3-4-5-6  */	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 1 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 2 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 3 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 4 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 5 )));	    gsb_data_report_set_sorting_type ( report_number,					       g_slist_append ( gsb_data_report_get_sorting_type (report_number),								GINT_TO_POINTER ( 6 )));	    /*   les devises sont à 1 (euro) */	    gsb_data_report_set_currency_general ( report_number,						   1 );	    gsb_data_report_set_category_currency ( report_number,						    1 );	    gsb_data_report_set_budget_currency ( report_number,						  1 );	    gsb_data_report_set_payee_currency ( report_number,						 1 );	    gsb_data_report_set_amount_comparison_currency ( report_number,							     1 );	    gsb_data_report_set_show_report_transactions ( report_number,							   1 );	    gsb_data_report_set_show_report_date ( report_number,						   1 );	    gsb_data_report_set_show_report_payee ( report_number,						    1 );	    gsb_data_report_set_show_report_category ( report_number,						       1 );	    gsb_data_report_set_show_report_sub_category ( report_number,							   1 );	    gsb_data_report_set_show_report_method_of_payment ( report_number,								1 );	    gsb_data_report_set_show_report_budget ( report_number,						     1 );	    gsb_data_report_set_show_report_sub_budget ( report_number,							 1 );	    gsb_data_report_set_show_report_method_of_payment_content ( report_number,									1 );	    gsb_data_report_set_show_report_note ( report_number,						   1 );	    gsb_data_report_set_show_report_voucher ( report_number,						      1 );	    gsb_data_report_set_show_report_marked ( report_number,						     1 );	    gsb_data_report_set_show_report_bank_references ( report_number,							      1 );	    gsb_data_report_set_show_report_financial_year ( report_number,							     1 );	    gsb_data_report_set_report_can_click ( report_number,						   1 );	    gsb_data_report_set_date_type ( report_number,					    4 );	    gsb_data_report_set_period_split ( report_number,					       1 );	    gsb_data_report_set_period_split_type ( report_number,						    2 );	    gsb_data_report_set_transfer_choice ( report_number,						  2 );	    /*   tout le reste est à NULL, ce qui est très bien */	    break;	default :	    dialogue_error ( _("Unknown report type, creation cancelled"));	    return FALSE;    }    gtk_widget_set_sensitive ( bouton_personnaliser_etat, TRUE );    gtk_widget_set_sensitive ( bouton_imprimer_etat, TRUE );    gtk_widget_set_sensitive ( bouton_exporter_etat, TRUE );    gtk_widget_set_sensitive ( bouton_dupliquer_etat, TRUE );    gtk_widget_set_sensitive ( bouton_effacer_etat, TRUE );    /* Add an entry in navigation pane. */    gsb_gui_navigation_add_report ( report_number );    personnalisation_etat ();    modification_fichier ( TRUE );    return FALSE;}