comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: GtkAda with several task (or distributed solution?)?
Date: 27 Apr 2001 20:49:01 +0100
Date: 2001-04-27T19:49:01+00:00	[thread overview]
Message-ID: <x7v7l06rumq.fsf@smaug.pushface.org> (raw)
In-Reply-To: 3AE9145E.36604291@mail.utexas.edu

"Bobby D. Bryant" <bdbryant@mail.utexas.edu> writes:

> 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.

In general, under X, you can get away with more than one task talking
to the same physical screen or even the same window provided they use
different display connections (Display* in C). Say, I create a window,
then pass you the Window handle and you draw on it .. but I'd better
not register for any events!

Usually easier to use XInitThreads(), XtToolkitThreadInitialize().


My experience is that if you see weird X protocol errors you've most
likely got a threading problem! and they appear pretty quickly.



  reply	other threads:[~2001-04-27 19:49 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
2001-04-27 19:49   ` Simon Wright [this message]
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