comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: GtkAda question
Date: Wed, 14 Apr 2021 23:05:57 +0200	[thread overview]
Message-ID: <s57lfg$tsi$1@gioia.aioe.org> (raw)
In-Reply-To: 60774f2d$0$12700$426a74cc@news.free.fr

On 2021-04-14 22:23, DrPi wrote:
> Le 14/04/2021 à 08:11, Dmitry A. Kazakov a écrit :

>> Use Gtk tutorials and then translate that knowledge back to GtkAda, it 
>> is more or less straightforward.
>>
> That's what I do. But there are things specific to GtkAda that are not 
> always easy to find. For example, GtkAda makes use of Gint data types. 
> You have to use Glib.To_Gint() function to do the conversion.

I never used it. But this is not GtkAda, this is GLib that uses GInt 
where a non-existent in C Boolean type would be appropriate.

> You also 
> have to use Glib.Convert.Locale_To_UTF8() function to be able to use 
> Strings with non ASCII characters.

No, you don't and this is not GtkAda either. Normally you never need to 
convert anything. You just assume everything UTF-8 and you are good.

When you use some specific encoding, you convert that to UTF-8 first. I 
use Ada means for that rather than GLib.Convert, but not with GTK stuff. 
GTK is already UTF-8.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  reply	other threads:[~2021-04-14 21:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-12 21:45 GtkAda question DrPi
2021-04-13  9:53 ` Blady
2021-04-13 11:07   ` DrPi
2021-04-13 11:55     ` Dmitry A. Kazakov
2021-04-13 21:36       ` DrPi
2021-04-14  6:11         ` Dmitry A. Kazakov
2021-04-14 10:21           ` Emmanuel Briot
2021-04-14 19:28             ` DrPi
2021-04-14 20:23           ` DrPi
2021-04-14 21:05             ` Dmitry A. Kazakov [this message]
2021-04-17 19:56               ` DrPi
2021-04-13 22:00 ` Gautier write-only address
2021-04-14 19:27   ` DrPi
2021-04-14 20:40     ` Dmitry A. Kazakov
2021-04-17 19:58       ` DrPi
2021-04-18  9:34 ` DrPi
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox