From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!aioe.org!kKn6+1ImQYph1Q25krsCRA.user.gioia.aioe.org.POSTED!not-for-mail From: Blady Newsgroups: comp.lang.ada Subject: Re: GtkAda question Date: Tue, 13 Apr 2021 11:53:52 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <6074bf6b$0$3702$426a74cc@news.free.fr> NNTP-Posting-Host: kKn6+1ImQYph1Q25krsCRA.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader02.eternal-september.org comp.lang.ada:61778 List-Id: 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.