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: Sat, 22 Oct 2022 01:26:28 +0200 [thread overview]
Message-ID: <8735bgpxln.fsf@samuel> (raw)
In-Reply-To: nnd$7cb1fd09$7c3222b7@a03744f4da05d6f2
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.
prev parent reply other threads:[~2022-10-21 23:26 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
2022-10-21 11:46 ` ldries46
2022-10-21 23:26 ` Ludovic Brenta [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox