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-7-bit Path: g2news2.google.com!postnews.google.com!h9g2000yqk.googlegroups.com!not-for-mail From: Gary Newsgroups: comp.lang.ada Subject: Re: GtkAda using Glade Date: Wed, 18 May 2011 11:24:11 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <15ff2ec1-5a2b-4d24-8aab-cf7985b6374f@t19g2000yql.googlegroups.com> <2e496d2c-f12f-4961-981b-2162fdf1ce1e@k3g2000prl.googlegroups.com> <1vakqa4gwjxry$.9j72428ewqp0.dlg@40tude.net> NNTP-Posting-Host: 98.88.179.222 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1305743051 23644 127.0.0.1 (18 May 2011 18:24:11 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 18 May 2011 18:24:11 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: h9g2000yqk.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:20270 Date: 2011-05-18T11:24:11-07:00 List-Id: > 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... Are you suggesting that I dismiss the use of Glade as well or just Gate? I know Gate converts the XML file to Ada source code, so are you saying I should keep the XML file and load it at runtime using Libglade... or that I should write the GUI code using "raw" GTK? > See here for a minimal GtkAda application: > > http://rosettacode.org/wiki/Simple_windowed_application#Ada This sample app uses GTK code in the source so I am guessing that you are not in favor of Glade as well as Gate. Am I making the correct assumption? BTW... through experimentation, I have learned that Gate seemingly does not correctly convert the "delete_event" signal to a complete Ada function. I had to add the "Gtk.Main.Main_Quit" code manually to get the app to terminate properly.