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,STOX_REPLY_TYPE, STOX_REPLY_TYPE_WITHOUT_QUOTES,XPRIO autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!goblin1!goblin.stu.neva.ru!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!nzpost2.xs4all.net!news.kpn.nl!not-for-mail From: "ldries46" Newsgroups: comp.lang.ada Subject: GTk3 without the Gtkbuilder and Glad Date: Fri, 10 Jun 2016 20:16:28 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 16.4.3528.331 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331 Message-ID: <575b0403$0$12046$e4fe514c@news.kpn.nl> NNTP-Posting-Host: 77.168.179.107 X-Trace: 1465582595 dreader34.news.xs4all.nl 12046 77.168.179.107:65273 X-Complaints-To: abuse@kpn.nl Xref: news.eternal-september.org comp.lang.ada:30685 Date: 2016-06-10T20:16:28+02:00 List-Id: For a number of reasons I want to use Gtk3 without using Glade and GtkBuilder. I am Building A template program now and I just came to a problem I just could not find documentation about. I want to create a Callback routine that in each case where the program can be stopped can be called. Let us say : On_Quit. I can make that routine and let it run from the menu or some error, But I cannot find the way to run this routine from the destroy button of the window. How should I do that? For information the call back routine has the following code: procedure On_Quit(Object : access Gtk_Menu_Item_Record'Class) is pragma Unreferenced (Object); begin -- At this point the ini files must be closed. All ini files are updated -- and closed with one call to Close_IIni -- If no Init Files are used then this call can be deleted Close_Ini; Gtk.Main.Main_Quit; end On_Quit; I hope someone can help me L. Dries