GtkWidget *dialog,*tree;
uint8_t DIA_RecentFiles( char **name ){GtkWidget *dialog,*tree;uint8_t ret=0;uint32_t nb_item;const char **names;GtkTreeIter   iter;	dialog=create_dialog1();	gtk_transient(dialog);	tree=lookup_widget(dialog,"treeview1");	names=prefs->get_lastfiles();// count	for( nb_item=0;nb_item<4;nb_item++)	{		if(!names[nb_item]) break;	}//	printf("\n found %d old files \n",nb_item);	if(!nb_item) return 0;	for (uint32_t i = 0; i < nb_item; i++)    	{		gtk_list_store_append (store, &iter);     		gtk_list_store_set (store, &iter,0,names[i],-1);//		printf("\n appending %s\n",names[i]);    	}	if(gtk_dialog_run(GTK_DIALOG(dialog))==GTK_RESPONSE_OK)	{	uint32_t sel;			if( (ret=getSelectionNumber(nb_item,tree  , store,&sel)))		{			*name=(char *)names[sel];		}	}	gtk_widget_destroy(dialog);	return ret;}