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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3ed4c57426e16006 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: GtkAda using Glade Date: Wed, 18 May 2011 13:56:11 +0200 Organization: A noiseless patient Spider Message-ID: References: <15ff2ec1-5a2b-4d24-8aab-cf7985b6374f@t19g2000yql.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 18 May 2011 11:56:08 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="vQOapoBCnbPqo6W3WBfabg"; logging-data="14833"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lMy104UcpwLXtiJds5+8X" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 In-Reply-To: <15ff2ec1-5a2b-4d24-8aab-cf7985b6374f@t19g2000yql.googlegroups.com> Cancel-Lock: sha1:6y9G8tnE+LlknB+Us1JSR6sadxM= Xref: g2news2.google.com comp.lang.ada:20263 Date: 2011-05-18T13:56:11+02:00 List-Id: Le 18/05/2011 01:58, Gary a �crit : > I am evaluating Ada for a GUI app using GtkAda/Glade. I have the > latest version of Ada from AdaCore. I've had no problem getting small > example apps to work with and without Glade. What I am having a > problem with is setting up signals through Glade. I simply want to set > up the "delete" event for the main window so "gtk_main_quit" will be > executed. Exactly how do I do that? Fairly easy (don't listen to those who will try to explain how to do it by hand, it is sooo much easier with glade ;-) ) Select the main window In the "signal" panel, under GtkWidget, select "delete-event" As the handler, select gtk_main_quit -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Adalog a d�m�nag� / Adalog has moved: 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00