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 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!mx02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: GTk3 without the Gtkbuilder and Glad Date: Sat, 11 Jun 2016 10:38:13 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <575b0403$0$12046$e4fe514c@news.kpn.nl> <575bcceb$0$28281$e4fe514c@news.kpn.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Sat, 11 Jun 2016 17:38:15 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="48b46be33beed75863f69afa437f956b"; logging-data="7077"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Rky92p3etkEJFL4N0c2TqIcfvGsx8BHw=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 In-Reply-To: <575bcceb$0$28281$e4fe514c@news.kpn.nl> Cancel-Lock: sha1:ocq63m7HWMMt+DkhEn0VtNpPaeg= X-Enigmail-Draft-Status: N1110 Xref: news.eternal-september.org comp.lang.ada:30696 Date: 2016-06-11T10:38:13-07:00 List-Id: On 06/11/2016 01:27 AM, ldries46 wrote: > > /I think I did exactly as you told, what went wrong/ Some observations: * Mine_Detector's handler handles the "delete_event" event and is called when the user clicks on the close button in the title bar (the only way to exit Mine_Detector). You're trying to handle the "destroy" event. If you want to respond to the close button in the title bar, and it sounds to me as if you do, then you should probably handle "delete_event". * The parameter list for your callback function is different from that in Mine_Detector. They should be the same. * You reference the Object parameter of your callback function (you pass it to a procedure), but have a pragma Unreferenced for it. -- Jeff Carter "I certainly have not the talent which some people possess, ... of conversing easily with those I have never seen before." Pride and Prejudice 121