comp.lang.ada
 help / color / mirror / Atom feed
From: "Bobby D. Bryant" <bdbryant@mail.utexas.edu>
To: Frank <franjoe@frisurf.no>
Subject: Re: GtkAda with several task (or distributed solution?)?
Date: Fri, 27 Apr 2001 12:40:30 +0600
Date: 2001-04-27T18:40:12+00:00	[thread overview]
Message-ID: <3AE9145E.36604291@mail.utexas.edu> (raw)
In-Reply-To: D%gG6.1133$Ty6.15964@news1.oke.nextra.no

Frank wrote:

> I read somewhere that if you have a Ada program using Gtk, and having
> several tasks, only one task can (or should?)
> operate the GUI ?

Only one task can call Gtk.Main.Main, which I suppose amounts to the same
thing.

If you have already installed GtkAda you should have a Users' Guide named
gtkada_ug.ps somewhere on your system, and it has a short section on the
restrictions for using GtkAda with tasking.


> Is this true if the tasks are "separeted" by the distributed solution also?

I have just started using GtkAda with a distributed program implemented with
gnat-glade.  I only need the GUI for the "master" partition, but after reading
your message I ran an experiment to see whether I could create a main window
from each of the slaves as well, and it worked fine.  My guess would be that
each partition can run its own Gtk.Main.Main, though there may well be some
gotchas that my simple test didn't uncover.

You will probably find that you have to recompile GtkAda to make it work with
distributed programs, at least if you are using gnat-glade.  See
http://gtkada.eu.org/pipermail/gtkada/2001-April/000777.html in the GtkAda
mailing list archive for a brief how-to.  The "GARLIC" mentioned there is a
component of gnat-glade, so you should already have it if you are using
gnat-glade.  (It was only last night that I got my distributed-GtkAda working,
but at least I haven't seen any trouble so far.)

Good luck,

Bobby Bryant
Austin, Texas





  reply	other threads:[~2001-04-27  6:40 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-27 16:20 GtkAda with several task (or distributed solution?)? Frank
2001-04-27  6:40 ` Bobby D. Bryant [this message]
2001-04-27 19:49   ` Simon Wright
2001-04-28  8:43   ` Frank
2001-04-28  6:02     ` Bobby D. Bryant
2001-05-01  8:48       ` Frank
2001-05-01  9:00         ` Preben Randhol
2001-05-02  7:21           ` Wilhelm Spickermann
2001-05-02  8:11             ` Preben Randhol
2001-05-02 10:51               ` Gerd Arlitt
2001-05-02  9:23                 ` Preben Randhol
2001-05-01 16:54         ` Bobby D. Bryant
2001-05-02  7:51           ` Wilhelm Spickermann
2001-05-02 16:50             ` Bobby D. Bryant
2001-05-03 18:22               ` Wilhelm Spickermann
2001-05-14 13:56           ` Recompiling GtkAda to handle Annex E variant of s-stratt Frank
2001-05-14 15:22             ` Florian Weimer
2001-05-15 15:10               ` Frank
2001-04-27 17:44 ` GtkAda with several task (or distributed solution?)? Ted Dennison
2001-04-28  8:31   ` Frank
2001-04-30 14:03     ` Ted Dennison
replies disabled

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