rem: date_courante = g_date_new_dmy ( date_jour->tm_mday, date_jour->tm_mon + 1, date_jour->tm_year + 1900 );
add: g_date_set_time ( date_courante, time (NULL));
context: gint echeances_a_saisir_applet ( gchar *verif_eche ){  int jour, mois, annee;  struct timeb date;  struct tm *date_jour;  GDate *date_courante;  xmlDocPtr doc;  xmlNodePtr node_1;        if ( !strlen ( g_strstrip ( verif_eche )))    return ( FALSE );/* rcupration de la date du jour */  ftime ( &date );  date_jour = localtime ( &date.time );  date_courante = g_date_new_dmy ( date_jour->tm_mday,				   date_jour->tm_mon + 1,				   date_jour->tm_year + 1900 );  g_date_add_days ( date_courante,		    decalage_echeance );  doc = xmlParseFile ( verif_eche );  if ( doc )    {      /* vrifications d'usage */      if ( !doc->root	   ||	   !doc->root->name	   ||	   g_strcasecmp ( doc->root->name,			  "Grisbi" ))	{	  GtkWidget *win_erreur;	  win_erreur = gnome_warning_dialog ( "Applet grisbi : Fichier de compte  vrifier invalide." );	     	  gnome_dialog_run_and_close ( GNOME_DIALOG ( win_erreur ));	  xmlFreeDoc ( doc );	  return ( FALSE );	}      /* on place node_1 sur les gnralits */            node_1 = doc -> root -> childs;      while ( node_1 )	{	  if ( !strcmp ( node_1 -> name,			 "chances" ))	    {	      xmlNodePtr node_echeances;	      /* node_echeances va faire le tour de l'arborescence des chances */	      node_echeances = node_1 -> childs;	      while ( node_echeances )		{		  if ( !strcmp ( node_echeances -> name,				 "Dtail_des_chances" ))		    {		      xmlNodePtr node_detail;		      node_detail = node_echeances -> childs;		      while ( node_detail )			{			  gchar **pointeur_char;			  pointeur_char = g_strsplit ( xmlGetProp ( node_detail ,								    "Date" ),						       "/",						       3 );			  jour = atoi ( pointeur_char[0] );			  mois = atoi ( pointeur_char[1] );			  annee = atoi ( pointeur_char[2] );			  g_strfreev ( pointeur_char );			  if ( g_date_compare ( g_date_new_dmy ( jour, mois, annee),						date_courante ) <= 0 )			    {			      nom_des_comptes = g_slist_append ( nom_des_comptes,								 g_strdup ( verif_eche ));			      xmlFreeDoc ( doc );			      return ( TRUE );			    }			  node_detail = node_detail -> next;			}		    }		  node_echeances = node_echeances -> next;		}	    }	  node_1 = node_1 -> next;	}    }  else    {      GtkWidget *win_erreur;            win_erreur = gnome_warning_dialog ( "Applet grisbi : Fichier de compte  vrifier invalide." );	           gnome_dialog_run_and_close ( GNOME_DIALOG ( win_erreur ));            return ( FALSE );    }    xmlFreeDoc ( doc );  return ( FALSE );}