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: a07f3367d7,20b056211a3391ce X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!news.weisnix.org!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: GTK strangeness Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <12f2c1f9-9f42-49f8-9a0d-d565d8ddb8be@l13g2000yqb.googlegroups.com> <75f68bf9-7647-4b3b-b46a-12bdb4033c31@k17g2000yqb.googlegroups.com> Date: Thu, 1 Oct 2009 17:22:39 +0200 Message-ID: NNTP-Posting-Date: 01 Oct 2009 17:21:14 CEST NNTP-Posting-Host: f588bf16.newsspool4.arcor-online.net X-Trace: DXC=>I\4B8h_ES_YI9]OHn9o5^4IUKkgRSDOk;P:I7^] X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:8561 Date: 2009-10-01T17:21:14+02:00 List-Id: On Thu, 1 Oct 2009 06:19:25 -0700 (PDT), Srini - wrote: > Perhaps there is a wiki or FAQ dedicated to GtkAda? > If not might be worth it. many subtleties. There is nothing specific about GtkAda, except maybe its design with regard to handling events based on generics. GtkAda comes with some documentation how to create simple custom widgets and very basic information about Gtk. The questions you asked are not GtkAda, but Gtk itself. There is a Gtk FAQ and some how-to's for tricky widgets like Gtk_Tree_View. Yes, you should translate them from C to GtkAda, but it is not difficult because GtkAda is thin bindings. > My next question has to do with : > > - font selection - a. the right way to access fonts installed on a > system with and without a selection dialog? for example I want to use > Verdana as the font for my dialogs/messages etc. should i look at some > mods to pango.aliases file? You can give a list of font names and pango will try to find a match, like: Font : Pango_Font_Description := From_String ("fixed,monospace 10"); This tries to find "fixed" then "monospace". > - File_Selection Dialog My reading of the doc says, I build a dialog > based on the file_selection widget. and it does not appear to match > the native file_selection dialog. Yes, because Gtk has its own look and feel in order to be portable. It does not use any Windows widgets. For example Gtk_Gentry has nothing to do with Windows EDIT control. > Eg windows or the mac have their own "style" if you will. I don't use Gtk file selection because I have my own, which is more in the Windows flavor. You can find it here among other additions to GtkAda: http://www.dmitry-kazakov.de/ada/gtkada_contributions.htm -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de