From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: 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 Message-ID: <8735bgpxln.fsf@samuel> References: <877d0wq590.fsf@samuel> 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= Xref: reader01.eternal-september.org comp.lang.ada:64540 List-Id: ldries46 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.