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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e793d50ead4087cc X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 X-Received: by 10.180.74.79 with SMTP id r15mr8671346wiv.4.1356656034591; Thu, 27 Dec 2012 16:53:54 -0800 (PST) Path: l12ni247315wiv.1!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.134.4.91.MISMATCH!news2.euro.net!multikabel.net!newsfeed20.multikabel.net!newsfeeder.ewetel.de!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail NNTP-Posting-Date: Thu, 27 Dec 2012 18:53:54 -0600 From: Robert Matthews Date: Fri, 28 Dec 2012 00:53:22 +0000 User-Agent: KNode/4.9.3 Subject: Re: Thickening Ada GTK or Vala Binding ? Newsgroups: comp.lang.ada References: <0c94b952-2bdf-4f25-98a3-91a67ed2355d@googlegroups.com> MIME-Version: 1.0 Message-ID: X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-OMf2NIWqOfvjPeU3JTM9fw9zhaF2JR2QcfO9Ot4VCY32Lrhj5SBVUtGpZwbN9c2Ji2NwiLifnn5wyVC!Lu0RCKESW6SSTG9w7E0CqMix/Dv40YtaBycnd6Eb1ruVEx0+5GNihtXG2gYOvRNc10uAwSbepsIL!SLeeh7IGsNeh8yxqhHmIcRAI X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2088 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit Date: 2012-12-28T00:53:22+00:00 List-Id: Patrick wrote: > If I was going to write c functions to hide away the GTK ugliness why > don’t just write them in Ada and help the community. > > Does anyone have some small code examples that might help with this ? Or > tips on how I could make another wrapper around Ada GTK ? > > that being said, this does not have to end up being a full reusable > wrapper around GTK, it could be codes samples that other people could use. > I think it is very hard to write reusable code as everyone’s needs are > different. I encountered a similar problem with GtkAda - rather low level and the marshalling stuff needed careful study each time I came back to the package. So I started writing "Simple_Gtk", code available here: http://www.ramatthews.free-online.co.uk/ I haven't worked on it for a few months so have not tried it with the latest GNAT - and so have not used the latest Ada way of interfacing to C code. However it worked (it includes test code) and covers a number of the widgets. Perhaps it will give you some ideas. Robert.