From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: GTK and tasking (GNAT)
Date: Sun, 4 May 2014 21:26:21 +0200
Date: 2014-05-04T21:26:21+02:00 [thread overview]
Message-ID: <14ydfwlh6wfe4$.1rv26jm958z.dlg@40tude.net> (raw)
In-Reply-To: bsnfm9Fslp5U1@mid.individual.net
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
next prev parent reply other threads:[~2014-05-04 19:26 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-03 20:30 GTK and tasking (GNAT) hreba
2014-05-03 21:23 ` Simon Wright
2014-05-04 18:10 ` hreba
2014-05-04 18:29 ` Simon Wright
2014-05-04 22:10 ` hreba
2014-05-04 7:31 ` Dmitry A. Kazakov
2014-05-04 18:36 ` hreba
2014-05-04 19:26 ` Dmitry A. Kazakov [this message]
2014-05-04 20:40 ` hreba
2014-05-04 21:07 ` Shark8
2014-05-04 21:32 ` hreba
2014-05-04 21:44 ` Shark8
2014-05-04 21:57 ` hreba
2014-05-05 7:33 ` Dmitry A. Kazakov
2014-05-06 12:43 ` hreba
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox