comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: GtkAda. Printing
Date: Wed, 3 Aug 2016 09:39:42 +0200
Date: 2016-08-03T09:39:42+02:00	[thread overview]
Message-ID: <nns747$s6g$1@gioia.aioe.org> (raw)
In-Reply-To: 57a1973c$0$12033$e4fe514c@news.kpn.nl

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


  reply	other threads:[~2016-08-03  7:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-03  7:02 GtkAda. Printing ldries46
2016-08-03  7:39 ` Dmitry A. Kazakov [this message]
2016-08-03 10:25   ` ldries46
2016-08-03 10:55     ` Dmitry A. Kazakov
2016-08-04  5:33       ` ldries46
2016-08-04  7:01         ` Dmitry A. Kazakov
2016-08-04 11:39           ` ldries46
2016-08-04 12:27             ` ldries46
2016-08-05 17:34               ` ldries46
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox