comp.lang.ada
 help / color / mirror / Atom feed
From: "ldries46" <bertus.dries@planet.nl>
Subject: Re: GTk3 without the Gtkbuilder and Glad
Date: Mon, 13 Jun 2016 09:40:45 +0200
Date: 2016-06-13T09:40:45+02:00	[thread overview]
Message-ID: <575e6384$0$12013$e4fe514c@news.kpn.nl> (raw)
In-Reply-To: <njk52u$jmg$1@dont-email.me>

You are correct, this worked.
I thought that because Main_Window_Record was an instantation of 
Gtk_window_record that should also do the trick and was more clear for the 
reader.

"Jeffrey R. Carter"  schreef in bericht news:njk52u$jmg$1@dont-email.me...

On 06/12/2016 12:50 AM, ldries46 wrote:
>
> package Windows_Callback is new
>  Gtk.Handlers.Return_Callback (Main_Window_Record, boolean);
>
> Windows_Callback.Connect(MainWindow, "delete_event",
> 
> Windows_Callback.To_Marshaller(On_Window_Destroy'Access));
>
> function On_Window_Destroy (Object : access Gtk_Window_Record'Class;
>                            Event : Gdk.Event.Gdk_Event) return Boolean;

The only remaining difference I can see is that Mine_Detector instantiates
Return_Callback with Gtk_Window_Record, while you instantiate it with
Main_Window_Record.

-- 
Jeff Carter
"What I wouldn't give for a large sock with horse manure in it."
Annie Hall
42 


  reply	other threads:[~2016-06-13  7:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-10 18:16 GTk3 without the Gtkbuilder and Glad ldries46
2016-06-10 18:38 ` Jeffrey R. Carter
     [not found]   ` <575bcceb$0$28281$e4fe514c@news.kpn.nl>
2016-06-11 17:38     ` Jeffrey R. Carter
2016-06-12  7:50       ` ldries46
2016-06-12 17:10         ` Jeffrey R. Carter
2016-06-13  7:40           ` ldries46 [this message]
2016-06-13 15:50             ` Jeffrey R. Carter
2016-06-10 19:55 ` Dmitry A. Kazakov
replies disabled

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