[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...


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