From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.9 required=3.0 tests=BAYES_00,NICE_REPLY_A, WEIRD_PORT autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!cleanfeed2-a.proxad.net!nnrp1-1.free.fr!not-for-mail Subject: Re: GtkAda callback and event Newsgroups: comp.lang.ada References: <6133e791$0$6461$426a74cc@news.free.fr> <6134cb26$0$3697$426a74cc@news.free.fr> <6134db32$0$6461$426a74cc@news.free.fr> From: DrPi <314@drpi.fr> Date: Sun, 5 Sep 2021 17:04:15 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <6134db32$0$6461$426a74cc@news.free.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Message-ID: <6134dc71$0$3693$426a74cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 05 Sep 2021 17:04:17 CEST NNTP-Posting-Host: 82.65.30.55 X-Trace: 1630854257 news-1.free.fr 3693 82.65.30.55:57935 X-Complaints-To: abuse@proxad.net Xref: reader02.eternal-september.org comp.lang.ada:62643 List-Id: Le 05/09/2021 à 16:58, DrPi a écrit : > Le 05/09/2021 à 16:48, Dmitry A. Kazakov a écrit : >> On 2021-09-05 15:50, DrPi wrote: >>> Le 05/09/2021 à 00:29, Dmitry A. Kazakov a écrit : >> >>> With "Gtk.Arguments.Unchecked_To_Gdk_Event_Motion (Params, 1);" , I >>> get an error : >>> expected private type "C_GValues" defined at glib-values.ads:53 >>> found private type "GValues" defined at glib-values.ads:48 >> >> I see, then you must to implement it yourself. It could be something >> like this (not tested): >> >>     package Conversions is >>        new System.Address_To_Access_Conversions (Gdk_Event_Motion); >> >>     Event : Gdk_Event_Motion renames >>             Conversions.To_Pointer (Get_Address (Nth (Params, 1))).all; >> > > So, Gtk.Arguments.Unchecked_To_Gdk_Event_Motion is useless ? Like all subprograms accepting C_GValues as a parameter ?