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=-1.5 required=5.0 tests=BAYES_00,STOX_REPLY_TYPE 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.8.229 with SMTP id u5mr1642085pba.0.1316695009074; Thu, 22 Sep 2011 05:36:49 -0700 (PDT) Path: lh7ni2541pbb.0!nntp.google.com!news1.google.com!goblin2!goblin1!goblin.stu.neva.ru!feeder.news-service.com!ramfeed-2.ams.xsnews.nl!feed.xsnews.nl!border-1.ams.xsnews.nl!upload-2.xsnews.nl!10.10.60.11.MISMATCH!frontend-F10-11.ams.news.kpn.nl From: "ldries46" Newsgroups: comp.lang.ada References: <4e7a8d90$0$5570$703f8584@news.kpn.nl> <4e7b0d07$0$2638$703f8584@news.kpn.nl> In-Reply-To: Subject: Re: Closing a program with GTK Date: Thu, 22 Sep 2011 14:36:36 +0200 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 15.4.3538.513 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3538.513 Message-ID: <4e7b2b6d$0$2601$703f8584@news.kpn.nl> Organization: KPN.com NNTP-Posting-Host: 77.168.179.107 X-Trace: 1316694893 news.kpn.nl 2601 77.168.179.107@kpn/77.168.179.107:52477 Xref: news1.google.com comp.lang.ada:18092 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit Date: 2011-09-22T14:36:36+02:00 List-Id: It maybe pointless but the destroy method the close button reaches is the one that gives the segmentation fault. The routine On_Window_Destroy is the one that closes the window and ends the program. 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? L. Dries "Dmitry A. Kazakov" schreef in bericht news:sdmxk3iekz24.1pquann2siya2$.dlg@40tude.net... 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