comp.lang.ada
 help / color / mirror / Atom feed
From: "Frank" <franjoe@frisurf.no>
Subject: GtkAda: Idle function
Date: Tue, 10 Apr 2001 17:20:26 +0200
Date: 2001-04-10T17:20:26+02:00	[thread overview]
Message-ID: <bxFA6.6232$R6.138982@news1.oke.nextra.no> (raw)

Hi!

I have tried to make an idle function, and add it ad an idle function in
GtkAda.
A get a error that is described in chapter 11.10 in Advanced Ada
Programming(http://vaxxine.com/pegasoft/homes/11.html)
something like: "access level can not be deeper that procedure" (or the
other way around:-).
As you see I have declared the idle function inside the main Ada-program, I
guess that is the problem.
The documentation says it must be declared as a global subprogram, does this
mean that my function should be in a
file on its own? If so how do I compile this toghether?

Or...I'm I completely off target :-)   (A very consentraded example would be
nice if it is very different from my try)
I have found a example in the GtkAda examples directory, but it is so
complex that I find it hard to understand what is going on :-)

Frank

procedure Test

   ---------
   -- Idlefunksjon
   ---
   function MinIdle  return Boolean
   is
   begin
        return TRUE;
   end MinIdle;
....
...
   Idle_Id : Idle_Handler_Id;
...

begin
..
..
   Idle_Id := Idle_Add (MinIdle'Access);
...
..
end





             reply	other threads:[~2001-04-10 15:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-10 15:20 Frank [this message]
     [not found] ` <GsJA6.2403$FY5.168093@www.newsranger.com>
2001-04-11 17:46   ` GtkAda: Idle function Frank
replies disabled

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