Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

The computing field is always in need of new cliches. -- Alan Perlis


devel / comp.lang.ada / Re: Is this an Gtk issue or an Ada issue or even a OS issue? Unwanted parallel processing

SubjectAuthor
* Is this an Gtk issue or an Ada issue or even a OS issue? Unwantedldries46
`* Re: Is this an Gtk issue or an Ada issue or even a OS issue? Unwanted parallel pLudovic Brenta
 `* Re: Is this an Gtk issue or an Ada issue or even a OS issue? Unwanted parallel pldries46
  `- Re: Is this an Gtk issue or an Ada issue or even a OS issue? Unwanted parallel pLudovic Brenta

1
Is this an Gtk issue or an Ada issue or even a OS issue? Unwanted parallel processing

<nnd$15f691fc$45f251ff@6c4243a14b752937>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=8932&group=comp.lang.ada#8932

  copy link   Newsgroups: comp.lang.ada
Date: Tue, 18 Oct 2022 08:30:34 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.3.3
Newsgroups: comp.lang.ada
Content-Language: en-GB
From: bertus.dries@planet.nl (ldries46)
Subject: Is this an Gtk issue or an Ada issue or even a OS issue? Unwanted
parallel processing
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Message-ID: <nnd$15f691fc$45f251ff@6c4243a14b752937>
Organization: KPN B.V.
Path: i2pn2.org!i2pn.org!news.nntp4.net!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe006.abavia.com!abp003.abavia.com!news.kpn.nl!not-for-mail
Lines: 15
Injection-Date: Tue, 18 Oct 2022 08:30:36 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1673
 by: ldries46 - Tue, 18 Oct 2022 06:30 UTC

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)

Re: Is this an Gtk issue or an Ada issue or even a OS issue? Unwanted parallel processing

<877d0wq590.fsf@samuel>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=8933&group=comp.lang.ada#8933

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: ludovic@ludovic-brenta.org (Ludovic Brenta)
Newsgroups: comp.lang.ada
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
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <877d0wq590.fsf@samuel>
References: <nnd$15f691fc$45f251ff@6c4243a14b752937>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="e05fa20ad8fc53594b0e360c67ba716a";
logging-data="4004973"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19U9cSA8m1TQ8yLftY60KoI"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:jNvwRd3MEmm8SeMCwKY1Jdw52hg=
sha1:okt9zBK4DrTjVWJMN2UkhBEtZmc=
 by: Ludovic Brenta - Tue, 18 Oct 2022 19:52 UTC

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.

Re: Is this an Gtk issue or an Ada issue or even a OS issue? Unwanted parallel processing

<nnd$7cb1fd09$7c3222b7@a03744f4da05d6f2>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=8938&group=comp.lang.ada#8938

  copy link   Newsgroups: comp.lang.ada
Date: Fri, 21 Oct 2022 13:46:06 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3
Subject: Re: Is this an Gtk issue or an Ada issue or even a OS issue? Unwanted parallel processing
Newsgroups: comp.lang.ada
References: <nnd$15f691fc$45f251ff@6c4243a14b752937> <877d0wq590.fsf@samuel>
Content-Language: en-GB
From: bertus.dries@planet.nl (ldries46)
In-Reply-To: <877d0wq590.fsf@samuel>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Message-ID: <nnd$7cb1fd09$7c3222b7@a03744f4da05d6f2>
Organization: KPN B.V.
Path: i2pn2.org!i2pn.org!news.swapon.de!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr2.eu1.usenetexpress.com!94.232.112.244.MISMATCH!feed.abavia.com!abe004.abavia.com!abp001.abavia.com!news.kpn.nl!not-for-mail
Lines: 34
Injection-Date: Fri, 21 Oct 2022 13:46:11 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 2910
 by: ldries46 - Fri, 21 Oct 2022 11:46 UTC

Op 18-10-2022 om 21:52 schreef Ludovic Brenta:
> 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?
>
I have started my dialog with de show_all function. In this case the
radio buttons and OK button do work correctly with show they did not
work and with run they did not even appear in the dialog. I understand
in the mean time that show and show all makes the program not stopping
until the the dialog is completed and run stops the further running of
the program until the dialog is stopped. Now I just need the run
equivalent of show_all

Re: Is this an Gtk issue or an Ada issue or even a OS issue? Unwanted parallel processing

<8735bgpxln.fsf@samuel>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=8951&group=comp.lang.ada#8951

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: ludovic@ludovic-brenta.org (Ludovic Brenta)
Newsgroups: comp.lang.ada
Subject: Re: Is this an Gtk issue or an Ada issue or even a OS issue? Unwanted parallel processing
Date: Sat, 22 Oct 2022 01:26:28 +0200
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <8735bgpxln.fsf@samuel>
References: <nnd$15f691fc$45f251ff@6c4243a14b752937> <877d0wq590.fsf@samuel>
<nnd$7cb1fd09$7c3222b7@a03744f4da05d6f2>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="291287d55339288fd3d9c9cbdc45bebd";
logging-data="775940"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18DMdShbjxrN8fy6alaJlI1"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:TYfLHHP7oF43Cym+E9aMYG1tPZo=
sha1:gJyBRCvmpx5yNLy9xnRrrnblThA=
 by: Ludovic Brenta - Fri, 21 Oct 2022 23:26 UTC

ldries46 <bertus.dries@planet.nl> writes:
> I have started my dialog with de show_all function. In this case the
> radio buttons and OK button do work correctly with show they did not
> work and with run they did not even appear in the dialog. I understand
> in the mean time that show and show all makes the program not stopping
> until the the dialog is completed and run stops the further running of
> the program until the dialog is stopped. Now I just need the run
> equivalent of show_all

From gtk-dialog.ads:
-- Before entering the recursive main loop, Gtk.Dialog.Run calls
-- Gtk.Widget.Show on the dialog for you. Note that you still need to show
-- any children of the dialog yourself.

Gtk_Dialog_Record is a type extension of Gtk_Window_Record, which is a
type extension of Gtk_Bin_Record, so your Gtk_Dialog has a single child,
which you need to show (this child is the VBox described in the
documentation of Gtk_Dialog).

Therefore:
- call Gtk.Dialog.Gtk_New (D).
- Create your widgets, pack them into D.Get_Content_Area
- Create and pack any buttons (e.g. OK, Cancel, Help) into D.Get_Action_Area.
- call D.Get_Child.Show_All;
- call D.Run

--
Ludovic Brenta.
Our quest for quality will be best positioned to boost a resourceful, parallel and granular pre-plan.


devel / comp.lang.ada / Re: Is this an Gtk issue or an Ada issue or even a OS issue? Unwanted parallel processing

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor