From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2339842f2a89f4a9 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.26.169 with SMTP id m9mr1813909pbg.3.1316699266248; Thu, 22 Sep 2011 06:47:46 -0700 (PDT) Path: lh7ni2575pbb.0!nntp.google.com!news1.google.com!goblin3!goblin1!goblin.stu.neva.ru!feeder.news-service.com!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Closing a program with GTK Date: Thu, 22 Sep 2011 15:48:03 +0200 Organization: cbb software GmbH Message-ID: <79iy1peuceu9$.bzuvizc9yuhz.dlg@40tude.net> References: <4e7a8d90$0$5570$703f8584@news.kpn.nl> <4e7b0d07$0$2638$703f8584@news.kpn.nl> <4e7b2b6d$0$2601$703f8584@news.kpn.nl> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news1.google.com comp.lang.ada:18093 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2011-09-22T15:48:03+02:00 List-Id: On Thu, 22 Sep 2011 14:36:36 +0200, ldries46 wrote: > The routine On_Window_Destroy is the > one that closes the window and ends the program. According to the code you posted On_Window_Destroy is a signal handler connected to the "destroy" event. The intended use of such handler in Gtk is to free all resources associated with the widget which are not managed by Gtk. In Gtk you shall never call any handlers explicitly. > I need that routine carried out. I don't think it is a good idea to alter > the gtk.object.destroy routine so what can I do? Destroy emits the "destroy" event, which in turn notifies all handlers of the signal, all reference holders release the reference which then lead to deallocation of the widget. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de