comp.lang.ada
 help / color / mirror / Atom feed
* GtkAda: Idle function
@ 2001-04-10 15:20 Frank
       [not found] ` <GsJA6.2403$FY5.168093@www.newsranger.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Frank @ 2001-04-10 15:20 UTC (permalink / 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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: GtkAda: Idle function
       [not found] ` <GsJA6.2403$FY5.168093@www.newsranger.com>
@ 2001-04-11 17:46   ` Frank
  0 siblings, 0 replies; 2+ messages in thread
From: Frank @ 2001-04-11 17:46 UTC (permalink / raw)


Hi!

Thank you :-)

Frank





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-04-11 17:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-10 15:20 GtkAda: Idle function Frank
     [not found] ` <GsJA6.2403$FY5.168093@www.newsranger.com>
2001-04-11 17:46   ` Frank

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