Re: [Vala] Adding my custom object to libGee.List...



I think that must be
  private Gee.List<PdfDocument> pdfDocuments = new Gee.ArrayList<PdfDocument> ();
----- Mensaje original -----
De: "Arkadi Viner" <arkashkin gmail com>
Para: vala-list gnome org
Enviados: Sábado, 19 de Junio 2010 17:48:18 (GMT-0500) Auto-Detected
Asunto: [Vala] Adding my custom object to libGee.List...

Hi,

In my program I have declared a list of object of type PdfDocument.
(PdfDocument is an object which handles one open pdf file, and provides some
function like displaying it, show number of pages...)

*so, the declaration look like this:*
  private Gee.List pdfDocuments = new Gee.ArrayList<PdfDocument> ();

*and when I try to add some thing to it:*
            pdfDocuments.add(new PdfDocument(file_chooser.get_filename ());
*I get compilation error:*
main.vala:99.13-99.24: error: missing generic type arguments
<b>Process return 256  execution time: 0.90 s</b>

please help...

_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]