comp.lang.ada
 help / color / mirror / Atom feed
From: Emmanuel Briot <briot@gnat.com>
Subject: Re: Modal dialogs with GtkAda
Date: Tue, 02 Jan 2001 13:41:35 GMT
Date: 2001-01-02T13:41:35+00:00	[thread overview]
Message-ID: <92slqe$r7h$1@nnrp1.deja.com> (raw)
In-Reply-To: 87ofxqqj0l.fsf@deneb.enyo.de


> How can I create modal dialogs with GtkAda?  Okay, I can use
> Set_Modal, but this doesn't result in the convenient programming
> interface modal dialogs have with some other widget sets.  More
> precisely, I want to do the following:
>       [...]
> Query_User_With_Dialog should not return while the dialog is
> visible on the screen.  Is there are simple way to implement
> Query_User_With_Dialog?


We have implemented exactly that kind of dialog in the package
Gtkada.Dialogs and Gtkada.File_Selection. These packages provides two
functions that do not return until the user closes the dialog (either
by clicking on the buttons or simply by closing the window).
If you can use these in your application, do it directly. If these
dialogs are not quite what you want, look at the source and do the
same thing for your dialog. This is one of the strong aspects of
free-software :-)

> (Another question: Is there any documentation on memory management and
> GtkAda, e.g. do I have free components of a window, entries in a
Clist,
> etc.?)


Read the secret documentation: the GtkAda user's guide as a full
paragraph on that. The short asnwer is: No, you don't need to free
the memory yourself, this is all taken care of.

regards,
Emmanuel
ACT-Europe


Sent via Deja.com
http://www.deja.com/



  reply	other threads:[~2001-01-02 13:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-02 11:40 Modal dialogs with GtkAda Florian Weimer
2001-01-02 13:41 ` Emmanuel Briot [this message]
2001-01-02 21:47   ` Florian Weimer
replies disabled

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