comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: I do not understand this error...
Date: Mon, 8 Feb 2016 22:25:25 -0700
Date: 2016-02-08T22:25:25-07:00	[thread overview]
Message-ID: <n9bt2o$hcd$3@dont-email.me> (raw)
In-Reply-To: <4b48fda1-7322-4960-b45c-6b7503cab9d9@googlegroups.com>

On 02/08/2016 04:39 PM, John Smith wrote:
> 
> I tried to "with" the following package:
> http://pastebin.com/ghd6kjZP
> 
> But I got the following errors:
> gtk_hello_world.adb:38:03: "Return_Handlers" is not visible
> gtk_hello_world.adb:38:03: non-visible declaration at handler_package.ads:11
> gtk_hello_world.adb:39:03: "Handlers" is not visible
> gtk_hello_world.adb:39:03: non-visible declaration at handler_package.ads:10

Handlers and Return_Handlers are inside Handler_Package, and have to be
referenced just like anything else inside a pkg. Just as you say
Gtk.Widget.Gtk_Widget_Record, you should say Handler_Package.Handlers.

But presumably the callbacks are still in your main-program subprogram, which is
not library level, so this won't help you by itself.

Typically I've put everything dealing with GtkAda in the same pkg, except the
call to Gtk.Main.Main. You can look at the Mine Detector game for an example.

https://pragmada.x10hosting.com/mindet.html

-- 
Jeff Carter
"When danger reared its ugly head, he bravely
turned his tail and fled."
Monty Python and the Holy Grail
60


  reply	other threads:[~2016-02-09  5:25 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-06 22:55 I do not understand this error John Smith
2016-02-06 23:47 ` Jeffrey R. Carter
2016-02-07  0:34   ` John Smith
2016-02-07  4:36     ` Jeffrey R. Carter
2016-02-08  3:51       ` John Smith
2016-02-08  4:41         ` Jeffrey R. Carter
2016-02-08 23:33           ` Robert A Duff
2016-02-09  5:25             ` Jeffrey R. Carter
2016-02-09  9:43             ` G.B.
2016-02-09 16:14               ` AdaMagica
2016-02-08 23:39           ` John Smith
2016-02-09  5:25             ` Jeffrey R. Carter [this message]
2016-02-07  8:23     ` Dmitry A. Kazakov
2016-02-07 22:11       ` John Smith
2016-02-07 23:26         ` John Smith
replies disabled

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