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!border1.nntp.ams1.giganews.com!nntp.giganews.com!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!nzpost2.xs4all.net!news.kpn.nl!not-for-mail From: "ldries46" Newsgroups: comp.lang.ada References: <57a1973c$0$12033$e4fe514c@news.kpn.nl> <57a1c6a7$0$12136$e4fe514c@news.kpn.nl> In-Reply-To: Subject: Re: GtkAda. Printing Date: Thu, 4 Aug 2016 07:33:01 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=response Content-Transfer-Encoding: 7bit Importance: Normal X-Newsreader: Microsoft Windows Live Mail 16.4.3528.331 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331 Message-ID: <57a2d3a9$0$20631$e4fe514c@news.kpn.nl> NNTP-Posting-Host: 77.168.179.107 X-Trace: 1470288809 dreader33.news.xs4all.nl 20631 77.168.179.107:53026 X-Complaints-To: abuse@kpn.nl X-Received-Bytes: 3076 X-Received-Body-CRC: 259827108 Xref: news.eternal-september.org comp.lang.ada:31281 Date: 2016-08-04T07:33:01+02:00 List-Id: To check what you said I tried the following just added an extra declaration: Print_OpR : Gtkada_Print_Operation_Record; and replaced Print_Op with it: The error stayed Then I changed Print_OpR in On_Draw_Page with Print_OpR'Access. The Error stayed nut said they expected Gtk_Print_Operation_record. When I Changed the declaration accordingly The Error said they expected Gtkada_Print_Operation_Record This looks like an infinite loop, and again, my experience wiyh GPS ia that somtimes the compiler tries several ways to resolve a problem abd you have to find out which of the several Error messages is the solution for you. I stll think It is the last one : expected type "Cb_Gtk_Print_Operation_Gtk_Print_Context_Gint_Void" defined at gtk-print_operation.ads:754 : found type access to procedure "Draw_Page" defined at line 191 : ==> in call to inherited operation "On_Draw_Page" at gtkada-printing.ads:102 I still cannot find how to address the draw_page routine ib there "Dmitry A. Kazakov" schreef in bericht news:nnsij4$1ddn$1@gioia.aioe.org... On 2016-08-03 12:25, ldries46 wrote: > Yes Print is declared as Gtkada_Print_Operation; and still in the Call > to routine Set_N_Pages(Print_Op, 1); the compiler does not find an error > while the declaration is > > procedure Set_N_Pages > (Self : not null access Gtk_Print_Operation_Record; > N_Pages : Gint); > > and > > type Gtkada_Print_Operation_Record is new > Gtk_Print_Operation_Record with private; > type Gtkada_Print_Operation is access all Gtkada_Print_Operation_Record; > > I expect that in the compiler to react the same in simular cases. > Therefore I think that the error in lines 190:30 is the real error and > the one I asked about. That depends on whether the operation is primitive or type specific. A primitive operation is inherited. Draw_Page parameter types are access Gtk_Print_Operation_Record'Class; not null access Gtk_Context_Record'Class; Gint not Gtk_Print_Operation_Record; Gtk_Print_Context; Gint -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de