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,b6df8f8501cf7275 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.224.72.199 with SMTP id n7mr31786919qaj.5.1357376251854; Sat, 05 Jan 2013 00:57:31 -0800 (PST) Path: k2ni5379qap.0!nntp.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newsfeed1.swip.net!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Easiest way to build Qt/Gtk interfaces for Ada programs Date: Sat, 5 Jan 2013 09:57:23 +0100 Organization: cbb software GmbH Message-ID: <17kykfh1ffwd8$.12s1oxuimdhm8$.dlg@40tude.net> References: <11a264a9-9f32-4e68-bf19-8877a1f46686@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: cDN0fd8KlIeJLyErIrSf0A.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 X-Received-Bytes: 1876 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2013-01-05T09:57:23+01:00 List-Id: On Fri, 4 Jan 2013 23:31:03 +0000 (UTC), Brian Drummond wrote: > One thing that is alleged to be possible, but so far has no good > tutorial : having written your own GTKAda widget, how do you make it > accessible and usable in Glade as the predefined widgets? I have an impression that GLADE is hard-coded. GTK has some widget introspection tools. GLADE could enumerate widget's properties, style properties, signals and parameters of, once you have an instance of the widget. The first problem is that one should link to GLADE, in order to introspect and configure. That cannot be the same application as the production code. You would have to maintain two projects instead of one. Another problem is that custom widgets are usually loaded with semantics which GLADE cannot know about or handle. E.g. the parameters of Gtk_New, the discriminants of the object etc. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de