rem: printf ( "%d\n", scheduled_transaction -> periodicite ); switch ( scheduled_transaction -> periodicite )
add: switch ( gsb_data_scheduled_get_frequency (scheduled_number))
context: gboolean gsb_scheduler_increase_date ( struct operation_echeance *scheduled_transaction,				       GDate *date ){    printf ( "%d\n", scheduled_transaction -> periodicite );    switch ( scheduled_transaction -> periodicite )    {	case 1:	    /* périodicité hebdomadaire */	    g_date_add_days ( date,			      7 );	    /* magouille car il semble y avoir un bug dans g_date_add_days qui ne fait pas l'addition si on ne met pas la ligne suivante */	    /* FIXME check if the bug in g_date_add_days is still present */	    g_date_add_months ( date,				0 );	    break;	case 2:	    /* périodicité mensuelle */	    g_date_add_months ( date,				1 );	    break;	case 3:	    /* périodicité annuelle */	    g_date_add_years ( date,			       1 );	case 4:	    /* set default here because sometimes the periodicity can be more than 4... 	     * FIXME to check why... if it was a bug, change that	     * here it's a personnal periodicity of 3 monthes which have here 6 instead of 4 */	default:	    /* périodicité perso */	    switch ( scheduled_transaction -> intervalle_periodicite_personnalisee )	    {		case 0:		    g_date_add_days ( date,				      scheduled_transaction -> periodicite_personnalisee );		    /* magouille car il semble y avoir un bug dans g_date_add_days qui ne fait pas l'addition si on ne met pas la ligne suivante */		    /* FIXME check if the bug in g_date_add_days is still present */		    g_date_add_months ( date,					0 );		    break;		case 1:		    g_date_add_months ( date,					scheduled_transaction -> periodicite_personnalisee );		    break;		case 2:		    g_date_add_years ( date,				       scheduled_transaction -> periodicite_personnalisee );		    break;	    }        }    return FALSE;}