comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Closing a program with GTK
Date: Thu, 22 Sep 2011 14:07:03 +0200
Date: 2011-09-22T14:07:03+02:00	[thread overview]
Message-ID: <sdmxk3iekz24.1pquann2siya2$.dlg@40tude.net> (raw)
In-Reply-To: 4e7b0d07$0$2638$703f8584@news.kpn.nl

On Thu, 22 Sep 2011 12:24:03 +0200, ldries46 wrote:

> I just have corrected the problem for  the quit menu button, and that 
> worked. Thanks for that. But the problem with the Close button on top of the 
> window stays
> 
> The code of the procedures is now
> procedure On_Quit1_Activate
>   (Object : access Gtk_Image_Menu_Item_Record'Class)
> is
>    pragma Unreferenced (Object);
> begin
>    On_Window_Destroy(Transc_AdaWindow);

If you want to destroy a window, you have to call its Destroy. Calling a
handler is pointless.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2011-09-22 12:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-22  1:21 Closing a program with GTK ldries46
2011-09-22  7:20 ` Dmitry A. Kazakov
2011-09-22 10:24   ` ldries46
2011-09-22 12:07     ` Dmitry A. Kazakov [this message]
2011-09-22 12:36       ` ldries46
2011-09-22 13:48         ` Dmitry A. Kazakov
2012-07-26 21:59           ` Jack Mitchell
2011-09-22 23:06         ` Randy Brukardt
replies disabled

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