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!news1.google.com!news.glorb.com!news2.arglkargh.de!news.n-ix.net!news.belwue.de!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool1.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> <1vakqa4gwjxry$.9j72428ewqp0.dlg@40tude.net> Date: Wed, 18 May 2011 22:19:42 +0200 Message-ID: <1npn5zwqehpsz.1lqame09nycx1.dlg@40tude.net> NNTP-Posting-Date: 18 May 2011 22:19:40 CEST NNTP-Posting-Host: da9de4fa.newsspool4.arcor-online.net X-Trace: DXC=ca5iIBZ`2X5T2Rfi6[5_82RT^Xe\dHoP3 X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:20274 Date: 2011-05-18T22:19:40+02:00 List-Id: On Wed, 18 May 2011 11:24:11 -0700 (PDT), Gary wrote: >> 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 am afraid, both. At some stage you will be forced to dismiss them anyway. Granted, I never looked at them. That is because I had experience with other GUI generators before. So when I started to learn Gtk I didn't even bother to look. > 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... XML is a pest. There is no single case where it might be useful or at least neutral. If you want some sort of serialization/persistency, skins, localization of a Gtk application, these are complicated issues to be carefully planed. In your place I would first experiment with Gtk, before going into this. > or that I should write the GUI code using "raw" GTK? Yes, at least to be able to debug it. >> 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? Absolutely. Gtk is a very complex thing. I cannot imagine how a code generator could be used for TreeView, Gdk, Cairo etc. It has no chance. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de