From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: gtkada Connecting via the Gtk.Handlers object_connect problem
Date: Sun, 3 Nov 2019 14:03:53 +0100
Date: 2019-11-03T14:03:53+01:00 [thread overview]
Message-ID: <qpmj7n$1pcs$1@gioia.aioe.org> (raw)
In-Reply-To: 254277d5-2ccc-474c-a65d-c5e2def102bd@googlegroups.com
On 2019-11-03 12:37, Alain De Vos wrote:
> I try an application with one button and one label and one handler
>
> http://docs.adacore.com/live/wave/gtkada/html/gtkada_ug/signals.html#second-case-using-object-connect-instead
> -------------------------
> I have a file myvboxpak.ads ->
> package myvboxpak is
>
> type MyVBoxR is new Gtk_VBox_Record with record
> Button : Gtk_Button;
> Label : Gtk_Label;
> end record;
> type MyVBoxT is access all MyVBoxR'Class;
>
> package MYCB is new Gtk.Handlers.User_Callback(Glib.Object.GObject_Record,MyVBoxT);
>
> procedure MyButtonClick (T : MyVBoxR'Class); --eventhandler ^^^^^^^^^^^^^^^^^^^
Should have been T : access MyVBoxR'Class
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2019-11-03 13:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-03 11:37 gtkada Connecting via the Gtk.Handlers object_connect problem Alain De Vos
2019-11-03 13:03 ` Dmitry A. Kazakov [this message]
2019-11-03 13:26 ` Alain De Vos
2019-11-03 15:23 ` Alain De Vos
2019-11-03 15:24 ` Alain De Vos
2019-11-03 21:46 ` Alain De Vos
2019-11-04 23:44 ` Alain De Vos
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox