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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bfb0b9f73a13c53e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-17 16:16:58 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!news.cs.univ-paris8.fr!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!news.worldonline.be!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Xlib Binding or Re-implementation? Date: 18 Mar 2004 01:19:51 +0100 Organization: Worldonline Belgium Sender: lbrenta@deuteronomy Message-ID: <87vfl3nh08.fsf@insalien.org> References: <985cbdf6.0403161320.7d1e090c@posting.google.com> <985cbdf6.0403171511.15aa1cfc@posting.google.com> NNTP-Posting-Host: ppp-62-235-74-137.tiscali.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.worldonline.be 1079569016 10975 62.235.74.137 (18 Mar 2004 00:16:56 GMT) X-Complaints-To: abuse@worldonline.be NNTP-Posting-Date: Thu, 18 Mar 2004 00:16:56 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Xref: archiver1.google.com comp.lang.ada:6387 Date: 2004-03-18T01:19:51+01:00 List-Id: bma3@dana.ucc.nau.edu (Ben Atkin) writes: > > X11 binding: > > > > http://www.adapower.com/lab/adax.html > > I'll check it out, thanks. > > > What is it that you don't like about Gtk? > > It isn't Gtk in particular. It's that GUI libraries for 'nix, other > than Qt, don't encourage good GUI design principles. In fact, if you > compile their examples on GTK's website, you will get a broken GUI. By > broken I mean that pressing Esc doesn't close a dialog box, and > pressing Enter in a single-line text field doesn't cause the default > button to be pressed and the appropriate action to be taken. That is true, but at least GNOME has published human interface design guidelines which, if followed, lead to this consistency. Xlib doesn't have such guidelines, it's not even a toolkit. If you mean to use Xaw (the Athena widgets) or Xm (Motif or Lesstif widgets), you won't necessarily have a good GUI either. > Plus, GTK programs are full of other types of bugs, many of which > could be prevented by using something other than type-unsafe macros, > leading to spaghetti code. This is comp.lang.ada; we do not use type-unsafe macros here :) The designers of GTK+ never intended for GTK+ applications to be written in C. I personally attended a presentation by Owen Taylor, a member of the core GTK+ team, at FOSDEM 2003. He specifically said "Do Not Program In C", and he explained that his employer Red Hat uses Python for all their GUIs. The main (perhaps only) reason why GTK+ itself is written in C is to make it easy to write thick bindings to it from high level languages (see http://www.gtk.org/bindings). GtkAda is one such binding, and a pretty good one at that. > Part of me wants to jump on the GTK bandwagon, and help things > progress toward a standard. But what I really want to progress toward > is having well-designed GUI's. Over and above the thick binding to GTK+, GtkAda provides several rich widgets (canvas and MDI come to mind) and certainly the authors would gladly accept your contributions. There is also Glade, the graphical UI designer, which can generate Ada source code. If you're really interested in good UI design, you'll probably be much more productive with it than with Athena or Lesstif. I suggest you really have a good look at GtkAda; you will probably find that it already provides much more of what you want than do Xaw or Xm. And if something is missing, please offer to contribute :) (You may also be interested in GNUStep, which is one pretty good toolkit with UI guidelines and a graphical designer, but for that you'd have to go to the Objective-C newsgroup. GNUStep has been quite active in recent months.) -- Ludovic Brenta.