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,3ed4c57426e16006 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!feeder.erje.net!news2.arglkargh.de!noris.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: GtkAda using Glade Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <15ff2ec1-5a2b-4d24-8aab-cf7985b6374f@t19g2000yql.googlegroups.com> <2e496d2c-f12f-4961-981b-2162fdf1ce1e@k3g2000prl.googlegroups.com> Date: Wed, 18 May 2011 19:25:42 +0200 Message-ID: <1vakqa4gwjxry$.9j72428ewqp0.dlg@40tude.net> NNTP-Posting-Date: 18 May 2011 19:25:41 CEST NNTP-Posting-Host: 072f4187.newsspool3.arcor-online.net X-Trace: DXC=M\M>:RM6NAO2jYf>V4L0gLMcF=Q^Z^V3H4Fo<]lROoRA8kFT\^nE^;mI[6LHn;2LCVN[5_8BHVQPDino05N X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:20269 Date: 2011-05-18T19:25:41+02:00 List-Id: On Wed, 18 May 2011 06:58:52 -0700 (PDT), Gary wrote: > The code that "Gate" generates does not look right to > me. Having reached the level of understanding to tell if the code looks wrong, why would anybody use Gate? (:-)) Seriously, sooner you ditch the crutches, sooner you start walking... > 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 := To_Event (Params, 1); > begin > return False; > end Gtk_Main_Quit; > > This isn't right is it? Yes, but seemingly not enough. Somewhere you should respond to "destroy" with a call to Gtk.Main.Main_Quit. See here for a minimal GtkAda application: http://rosettacode.org/wiki/Simple_windowed_application#Ada -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de