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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no 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!postnews.google.com!k3g2000prl.googlegroups.com!not-for-mail From: Gary Newsgroups: comp.lang.ada Subject: Re: GtkAda using Glade Date: Wed, 18 May 2011 06:58:52 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2e496d2c-f12f-4961-981b-2162fdf1ce1e@k3g2000prl.googlegroups.com> References: <15ff2ec1-5a2b-4d24-8aab-cf7985b6374f@t19g2000yql.googlegroups.com> NNTP-Posting-Host: 98.88.179.222 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1305727134 15719 127.0.0.1 (18 May 2011 13:58:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 18 May 2011 13:58:54 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k3g2000prl.googlegroups.com; posting-host=98.88.179.222; posting-account=0XWPhwoAAADr6lww5Nx1mZKUCofb0j1i User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.68 Safari/534.24,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:20267 Date: 2011-05-18T06:58:52-07:00 List-Id: On May 18, 7:56=A0am, "J-P. Rosen" wrote: > Le 18/05/2011 01:58, Gary a =E9crit :> 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 I did that but the process is still running on Windows XP after I close the app. The code that "Gate" generates does not look right to me. It generates the following code in the "..._pkg_callbacks.adb" function Gtk_Main_Quit (Object : access Gtk_Widget_Record'Class; Params : Gtk.Arguments.Gtk_Args) return Boolean is Arg1 : Gdk_Event :=3D To_Event (Params, 1); begin return False; end Gtk_Main_Quit; This isn't right is it?