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!cleanfeed3-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> <6134dc71$0$3693$426a74cc@news.free.fr> From: DrPi <314@drpi.fr> Date: Sun, 5 Sep 2021 17:20:27 +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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Message-ID: <6134e03d$0$3372$426a74cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 05 Sep 2021 17:20:29 CEST NNTP-Posting-Host: 82.65.30.55 X-Trace: 1630855229 news-2.free.fr 3372 82.65.30.55:57960 X-Complaints-To: abuse@proxad.net Xref: reader02.eternal-september.org comp.lang.ada:62645 List-Id: Le 05/09/2021 à 17:12, Dmitry A. Kazakov a écrit : > On 2021-09-05 17:04, DrPi wrote: >> 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 ? > > It is a part of GValues object. But you could create a child package > that would have access to the internals of GValue and get access to > C_GValues in GValue. > I didn't know I can create a child Package of a GtkAda Package myself. Thanks for all these explanations Dmitry. Regards, Nicolas