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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.122.200 with SMTP id lu8mr1133835pab.4.1371454480149; Mon, 17 Jun 2013 00:34:40 -0700 (PDT) X-Received: by 10.49.24.208 with SMTP id w16mr337333qef.37.1371454479726; Mon, 17 Jun 2013 00:34:39 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!mx05.eternal-september.org!feeder.eternal-september.org!xmission!news.snarked.org!newsfeed.news.ucla.edu!usenet.stanford.edu!ko2no18858811pbb.0!news-out.google.com!b2ni18698pby.1!nntp.google.com!x10no4853668pbg.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 17 Jun 2013 00:34:39 -0700 (PDT) In-Reply-To: <18skv8a27id6j$.zmpapixyu2ak$.dlg@40tude.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=68.113.176.20; posting-account=MynaUQoAAABLIabAWk436qZGCp4jiL1_ NNTP-Posting-Host: 68.113.176.20 References: <18skv8a27id6j$.zmpapixyu2ak$.dlg@40tude.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8e92b857-8a2a-47f9-a60d-e913a13bfe17@googlegroups.com> Subject: Re: How to add a GTKAda? From: Marcus F Injection-Date: Mon, 17 Jun 2013 07:34:40 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:15771 Date: 2013-06-17T00:34:39-07:00 List-Id: On Monday, June 17, 2013 2:26:59 AM UTC-5, Dmitry A. Kazakov wrote: > On Sun, 16 Jun 2013 21:50:14 -0700 (PDT), Marcus F wrote: > > > > > I'm certainly new to Ada (A few days in), but I'm not new to programming, > > > I usually learn best by examples and by altering code, which is why I > > > wanted to play with GTK, I've done minimal GUI programming before in > > > PortablE. > > > > 1. Rosetta Code has plenty GtkAda examples: > > > > http://rosettacode.org/wiki/Rosetta_Code > > > > Note that these are GTK 2.x (GtkAda 2.24.x). Don't expect them working with > > GTK 3.x (GtkAda 3.4.x). None will. But it is relatively straightforward to > > fix them. > > > > I presume, the biggest issue for a beginner would be generic packages > > defining signal handlers. They cannot be instantiated deeper than on the > > library level. Examples tend to be single source file, which will require > > unchecked conversions for a locally defined handler to the library level > > callback procedure. (For a real-life project it is not an issue because it > > will put this stuff into library level packages.) > > > > 2. Refer to GTK documentation and tutorials: > > > > https://developer.gnome.org/gtk3/stable/ > > > > GtkAda is thin bindings, so C examples are relatively simple to translate > > into Ada. Except for signal handlers which are made Ada way (e.g. type > > safe). > > > > 3. You should probably switch to GPS. AdaGIDE is nice but not suitable for > > large projects. It is much comfortable for GtkAda and other large projects > > deploying GNAT project files (*.gpr). > > > > -- > > Regards, > > Dmitry A. Kazakov > > http://www.dmitry-kazakov.de Thank you Dmitry, I did already install GPS, but.. I don't understand it. I tried new project, typing in code, but I can't compile/build/run, I get a number of errors. I'll try re-installing tomorrow, maybe I did something wrong when installing.