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,b6df8f8501cf7275 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.66.89.39 with SMTP id bl7mr7913312pab.33.1357342799150; Fri, 04 Jan 2013 15:39:59 -0800 (PST) X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 88.191.116.97 Path: s9ni82538pbb.0!nntp.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!nntpfeed.proxad.net!dedibox.gegeweb.org!gegeweb.eu!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: Easiest way to build Qt/Gtk interfaces for Ada programs Date: Fri, 4 Jan 2013 23:39:58 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <12019264-a08e-414b-a260-5f8aaa4adabf@googlegroups.com> <50e14823$0$32188$703f8584@news.kpn.nl> Mime-Version: 1.0 Injection-Date: Fri, 4 Jan 2013 23:39:58 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="dfff62e1e537b55df42008571c03e0fe"; logging-data="24346"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19uV9ZpHlDDKiUl9iCmS8W7IIvdTP6oSJA=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:t/p2mWftrWND5EyAueTmH0ix9r4= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2013-01-04T23:39:58+00:00 List-Id: On Mon, 31 Dec 2012 09:07:38 +0100, ldries46 wrote: > The biggest problem I have with Glade 3 is the complete lack of good > tutorials or user guides for using the glade files with Ada. Amen! There are tutorials that cover little parts of the problem but nothing about putting the components together to form a coherent application. > The link to http://wiki.ada-dk.org/building_gui_with_glade_3 just > presents a simple ada program which even lacks a simple extension is how > to link a filechooser dialog or link a Gtk_Textview to my program. Are > there such tutorials and where can I find them. > I tried to create a filechooser to my program by only using code but I > cannot find some explanation how to get the link to the parent. Filechooser stumped me too for a couple of days. As John Matthews says, there is a lot of good stuff in TestGTK, including a FileChooser button and a completely diffrent (and IMO ugly) style of file selection widget - but even then, they opened a window but didn't give a clue how to actually get a filename out of it! I finally managed it to my satisfaction - still mean to write it (and others) up as a tutorial, but have another project on the go at the moment. I also put together a little harness that lets me take any one component out of TestGTK and run it standalone, to see how it works in isolation until I can make it do my bidding. I keep meaning to put that up somewhere too... - Brian