From: Blady <p.p11@orange.fr>
Subject: Re: GtkAda question
Date: Tue, 13 Apr 2021 11:53:52 +0200 [thread overview]
Message-ID: <s53pnh$10d2$1@gioia.aioe.org> (raw)
In-Reply-To: 6074bf6b$0$3702$426a74cc@news.free.fr
Le 12/04/2021 à 23:45, DrPi a écrit :
> Hi,
>
> Anyone using Glib.Key_File package ?
> I have not been able to use it successfully.
> Looking at the package source code, there are missing functions.
> Save_To_File() is one of them. Hard to save parameters without this
> function ;)
>
> Note : I'm using Community GtkAda 2020.
Hello Nicolas,
You may use this code proposal:
function Save_To_File
(Key_File : G_Key_File;
File : String;
Error : Glib.Error.GError := null)
return Boolean;
function Save_To_File
(Key_File : G_Key_File;
File : String;
Error : Glib.Error.GError := null)
return Boolean
is
function Internal
(Key_File : G_Key_File;
File : String;
Error : Glib.Error.GError)
return Gboolean;
pragma Import (C, Internal, "g_key_file_save_to_file");
begin
return Boolean'Val (Internal (Key_File, File & ASCII.NUL, Error));
end Save_To_File;
If ok you even may send a pull request to AdaCore:
https://github.com/AdaCore/gtkada/pulls
or an issue:
https://github.com/AdaCore/gtkada/issues
HTH, Pascal.
next prev parent reply other threads:[~2021-04-13 9:53 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 [this message]
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
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