From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7efbdbcd2058c74e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-27 11:45:07 PST Path: newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!xmission!news.cc.utah.edu!newsfeed.cs.utexas.edu!geraldo.cc.utexas.edu!not-for-mail From: "Bobby D. Bryant" Newsgroups: comp.lang.ada Subject: Re: GtkAda with several task (or distributed solution?)? Date: Fri, 27 Apr 2001 12:40:30 +0600 Organization: (I do not speak for) The University of Texas at Austin (nor they for me). Message-ID: <3AE9145E.36604291@mail.utexas.edu> References: NNTP-Posting-Host: dial-53-47.ots.utexas.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: geraldo.cc.utexas.edu 988396812 6299 128.83.57.143 (27 Apr 2001 18:40:12 GMT) X-Complaints-To: abuse@cc.utexas.edu NNTP-Posting-Date: 27 Apr 2001 18:40:12 GMT To: Frank X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.3-ac9 i686) X-Accept-Language: en,fr,de Xref: newsfeed.google.com comp.lang.ada:6995 Date: 2001-04-27T18:40:12+00:00 List-Id: 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