From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,WEIRD_PORT autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: GtkAda. Printing Date: Wed, 3 Aug 2016 09:39:42 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <57a1973c$0$12033$e4fe514c@news.kpn.nl> NNTP-Posting-Host: xelDFTENDI+dlkJFd2Ot2w.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:31264 Date: 2016-08-03T09:39:42+02:00 List-Id: On 2016-08-03 09:02, ldries46 wrote: > 190:07: missing argument for parameter "Slot" in call to "On_Draw_Page" > declared at gtk-print_operation.ads:769 > 190:20: expected an access type with designated type > "Gtk_Print_Operation_Record" defined at gtk-print_operation.ads:98 > 190:20: found type "Gtkada_Print_Operation" defined at > gtkada-printing.ads:104 The compiler told you everything you need. You use an instance of Gtkada_Print_Operation instead of access Gtk_Print_Operation_Record. The types are declared as follows: type Gtkada_Print_Operation_Record is new Gtk_Print_Operation_Record with private; type Gtkada_Print_Operation is access all Gtkada_Print_Operation_Record; P.S. Granted, it seems a glitch in the GtkAda bindings which should have used access Gtk_Print_Operation_Record'Class instead. But nothing you could not workaround with an explicit type conversion... -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de