comp.lang.ada
 help / color / mirror / Atom feed
From: DrPi <314@drpi.fr>
Subject: Re: GtkAda question
Date: Sat, 17 Apr 2021 21:56:20 +0200	[thread overview]
Message-ID: <607b3d65$0$3693$426a74cc@news.free.fr> (raw)
In-Reply-To: <s57lfg$tsi$1@gioia.aioe.org>

Le 14/04/2021 à 23:05, Dmitry A. Kazakov a écrit :
> 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.
> 
Ok.
I'll start a new thread on this subject.
Thanks.

  reply	other threads:[~2021-04-17 19:56 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
2021-04-17 19:56               ` DrPi [this message]
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