comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Is this an Gtk issue or an Ada issue or even a OS issue? Unwanted parallel processing
Date: Tue, 18 Oct 2022 21:52:11 +0200	[thread overview]
Message-ID: <877d0wq590.fsf@samuel> (raw)
In-Reply-To: nnd$15f691fc$45f251ff@6c4243a14b752937

ldries46 <bertus.dries@planet.nl> writes:

> I have the following problem, which I can solve in my case but I still
> want to know how to solve in a general way.
> Case:
> In an Ada program I use the Gtk Filechooser with the On_OK routine. In
> that routine I read the chosen file and start some other calculations
> I need to do on that file (call for a new dialogue witin a callback
> from a higher level).  But these calculations are depending on the
> extension of the file. In some cases I even need another dialogue to
> decide which type o f calculations I have to follow. The program can
> only go on after this manual choice is made. But I see that the
> program goes on without waiting on that last dialogue to be closed.
> Is there a way in Gtk to solve this or in Ada to block that obvious
> parallel processing or must I look for a solution within the operating 
> system (Windows 11)

I'm not sure what goes on "in parallel".  Have you started any tasks in
your Ada program?

If you want a modal dialog, you run it with Gtk.Dialog.Run, which starts
a nested event loop and does not process inputs in any other parts of
the GUI until the user closes this dialog causing Run to return.  Of
course, since you've read the documentation on Gtk.Dialog, I assume this
is how you open your dialog.  So, what is your problem exactly?

-- 
Ludovic Brenta.
The Managing Principal Vice Co-Director of Business Operations re-aggregates long-range co-innovations. 

  reply	other threads:[~2022-10-18 19:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-18  6:30 Is this an Gtk issue or an Ada issue or even a OS issue? Unwanted parallel processing ldries46
2022-10-18 19:52 ` Ludovic Brenta [this message]
2022-10-21 11:46   ` ldries46
2022-10-21 23:26     ` Ludovic Brenta
replies disabled

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