rem: file_selection_set_filename ( GTK_FILE_SELECTION ( file_selector ), dernier_chemin_de_travail );
add: filename = file_selection_set_filename ( GTK_FILE_SELECTION ( file_selector ), dernier_chemin_de_travail );
context: gint html_initialise (GSList * opes_selectionnees){    GtkWidget * file_selector;    gchar * filename;    gint resultat;    html_lastline = -1;    html_lastcol = 0;    html_last_is_hsep = FALSE;    html_first_line = TRUE;    file_selector = gtk_file_selection_new ( _("Export report to HTML file."));    file_selection_set_filename ( GTK_FILE_SELECTION ( file_selector ),				  dernier_chemin_de_travail );    file_selection_set_entry ( GTK_FILE_SELECTION ( file_selector ), 			       safe_file_name ( g_strconcat (etats_titre(), ".html", NULL)));    do     {	resultat = gtk_dialog_run ( GTK_DIALOG (file_selector) );	if ( resultat == GTK_RESPONSE_OK )	{	    FILE * test;	    gchar * filename;	    file_selection_get_filename ( GTK_FILE_SELECTION ( file_selector ));	    test = utf8_fopen ( filename, "r" );	    if ( test )	    {		fclose ( test );		if ( question_yes_no_hint ( g_strdup_printf ( _("File %s already exists."), 							      filename ),					    _("Do you want to overwrite it?  There is no undo for this.") ) )		{		    break;		}	    }	    else	    {		break;	    }	}	else	{	    break;	}    }    while ( 1 );    switch ( resultat )      {      case GTK_RESPONSE_OK :	filename = file_selection_get_filename ( GTK_FILE_SELECTION ( file_selector ));	break;	      default:	gtk_widget_destroy ( file_selector );	return FALSE;      }    gtk_widget_destroy ( file_selector );        html_out = utf8_fopen ( filename, "w" );    if ( ! html_out )    {      dialogue_error_hint ( _("Make sure file exists and is writable."),			   g_strdup_printf (_("Cannot open file '%s' for writing"), filename));      return FALSE;    }    fprintf (html_out, 	     "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n"	     "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n"	     "  \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n\n"	     "<html>\n"	     "  <head>\n"	     "    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n"	     "    <title>");    /* FIXME: be sure this works if displayed report is not the current one. */    html_safe (etats_titre());    fprintf (html_out, 	     "</title>\n"	     "  </head>\n\n"	     "  <body>\n"	     "    <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n\n");    return TRUE;}