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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: GTK and tasking (GNAT) Date: Sun, 4 May 2014 21:26:21 +0200 Organization: cbb software GmbH Message-ID: <14ydfwlh6wfe4$.1rv26jm958z.dlg@40tude.net> References: <1db3ntu987ypk$.6zu9ghm9azm0.dlg@40tude.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: AuYlnUSfTZrfhAkRjyySpQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:19666 Date: 2014-05-04T21:26:21+02:00 List-Id: On Sun, 04 May 2014 15:36:55 -0300, hreba wrote: > Is 'task-safe' more or less the same as 'thread-safe'? Yes. > I am somewhat disappointed about the details you have to understand > about GTK and tasking in order to use a GUI in an Ada program. Tasking is not simple. Tasking in a GUI is always complicated. > Given that what I want is > > - libraries available on Linux and Windows (as GTK) > - a GUI builder for the layout (as Glade) > - no fancy things, but: > * buttons > * text boxes > * drawing areas > * keyboard, mouse click and mouse movement events > - basic tasking: life output (progress) during lengthy calculations Progress indicator is not tasking. Tasking is when the job is done in a task independent on the main task processing the messages loop. > What GUI library would you recommend? Gtk is no worse than anything else. [*] P.S. Raw Windows API is largely task-safe. But Windows API is not portable and it has other issues, like messages generators and deadlocks. ------ * Except that Gtk 3.x is very poorly supported. Gtk 2.24 is quite usable. I hope that coming GNAT GPL 2014 will improve this. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de