comp.lang.ada
 help / color / mirror / Atom feed
From: Marcus F <trenatos@gmail.com>
Subject: Re: How to add a GTKAda?
Date: Mon, 17 Jun 2013 00:34:39 -0700 (PDT)
Date: 2013-06-17T00:34:39-07:00	[thread overview]
Message-ID: <8e92b857-8a2a-47f9-a60d-e913a13bfe17@googlegroups.com> (raw)
In-Reply-To: <18skv8a27id6j$.zmpapixyu2ak$.dlg@40tude.net>

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.

  reply	other threads:[~2013-06-17  7:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-17  2:51 How to add a GTKAda? Marcus F
2013-06-17  4:11 ` Jeffrey Carter
2013-06-17  4:50   ` Marcus F
2013-06-17  5:01     ` J-P. Rosen
2013-06-17  7:26     ` Dmitry A. Kazakov
2013-06-17  7:34       ` Marcus F [this message]
2013-06-18 10:45         ` Stephen Leake
2013-06-18 17:17           ` Marcus F
2013-06-18 22:44             ` Adam Beneschan
2013-06-19  7:05             ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox