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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Weakness of Ada is expensive / security / etc. ? Anything else? Date: Wed, 22 Jul 2015 08:54:46 +0200 Organization: cbb software GmbH Message-ID: References: <084c0dc7-ae74-4cb8-b1fe-78f42de94291@googlegroups.com> <5IidnWtEWowowjHInZ2dnUVZ5v6dnZ2d@giganews.com> <61db6272-72a4-47d7-b0e5-e870ac8a0432@googlegroups.com> <9078db18-03ef-4724-9818-e9ae37e3d7a8@googlegroups.com> <1opmyg48btl6a$.1pgzq9yrcmv6t$.dlg@40tude.net> <3922d054-290f-4a7d-8660-85eeac6072e9@googlegroups.com> <9daa54dc-338a-4a78-b553-5609623ff061@googlegroups.com> <1npnbotrqohbb$.cj0by0oyo31r$.dlg@40tude.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: 5ZS5s7Q3rAN7MBP/UXLPIQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:26957 Date: 2015-07-22T08:54:46+02:00 List-Id: On Tue, 21 Jul 2015 17:17:38 -0700 (PDT), NiGHTS wrote: >> Label text wrapping may depend on the widget size requisition. So you >> should set the label size explicitly. It could be a GTK bug as well, >> because it is highly unlikely that anybody would use that for text >> rendering, there is Gtk_Text_View for that. And because GTK 3 reworked most >> of widget sizing. > > It affects things like tooltips (built in) and various other things that > inherently use labels. They reworked tooltips in GTK 3, I don't know how the new implementation works, e.g. if you can insert widgets into a tooltip. But I suppose that Gtk_Label could have issues with size computation interaction with its container, the tooltip window in this case. Non-wrapping would be a consequence of that. > I've explicitly set widths to all inherited widgets > including the label itself and this had no effect. I made sure Word > wrapping was enabled and followed all correct guidelines on the subject. > Again it works in Windows, just not in Linux. You can always take a look in the GTK sources. Sometimes it helps. >> GTK is full of bugs, especially GTK 3. But that has nothing to do with Ada. > > I am not blaming Ada. Its a beautiful language. I merely suspect that > GtkAda's thick bindings have something to do with it. No. GtkAda is semi-thick, script-generated. Most bugs are GTK's own. Problems you described IMO cannot be GtkAda's, per design of. If you had a GtkAda bug, the effect would be program crash. E.g. I guess that Set_String of Gtk_Tree_Store is such a bug. > I am not dismissing > the possibility that GTK 3 is also at fault, but in my mind I feel that > the GTK core library is probably more tested than GTKAda (A misconception > maybe? I would love to be wrong about this.) GTK is poorly maintained and a quite mess. My encounter with bug reports was very disappointing. GtkAda designers do read GtkAda mailing list, they even respond there! (:-)) The only problem with GtkAda maintenance is that the new release comes out once a year. It would not be a problem, if building it under Windows from the sources (they are freely available from the code base at any time) weren't such a huge trouble. >> Style is much more than colors. All widget style properties can be changed. > > Well you were talking about "themes", and no doubt styles involve both > color and structure. On that note I am quite disappointed by how limited > the GTK CSS support is with regards to things like setting margins and > other structural parameters. They simply don't work. I can only use the > CSS to define colors, fonts, and backgrounds. I've been forced to hard > code structural things like margins which I feel is bad form as it should > belong in the style sheet. GTK 2 had resource files. They dropped them and replaced by CSS. RC files were bad CSS is worse. >> There is GtkAda mail list. > > I've looked and couldn't find it. I would love to know what the address is > if you don't mind me asking. gtkada@lists.adacore.com > I fell in love with the GNATCOLL SQL philosophy. Unfortunately the > designers have not done a good job of generating interest in the project. Well, it depends on the potential customers. Personally, I am pretty allergic to any code generators and don't want to contaminate my tool chain with that. Then, I don't use anything but ODBC or *statically* linked SQLite3. > In my case I can't get any support whatsoever with using that library and > it seems like no one here takes it seriously. Its a shame. You should get GNAT Pro, if you want support. Otherwise, you must look into the sources. Doing that you will probably join me in my resentment toward code generators... -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de