From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Gavin McCord Newsgroups: comp.lang.ada Subject: Re: GEntry with autocomplete Date: Tue, 8 Mar 2022 23:46:35 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 8 Mar 2022 23:46:35 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="9a942f5a2ef0aac299e6c9b81a24efd7"; logging-data="28104"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+AeGxlbs0KW+G3G9nyb2wgxsoe4ddB/uT+Kx8GtPwXxA==" User-Agent: Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git) Cancel-Lock: sha1:TBMmXowAVbabivYK7lbXCjW47z0= Xref: reader02.eternal-september.org comp.lang.ada:63593 List-Id: On Mon, 7 Mar 2022 08:18:07 +0100, Dmitry A. Kazakov wrote: > On 2022-03-07 01:06, Gavin McCord wrote: > >> Compilation fails at line 40 "Completion_1.Set_Model (List_1)" >> with the error >> >> test.adb:40:28: error: expected private type "Gtk_Tree_Model" defined >> at gtk-tree_model.ads:195 test.adb:40:28: error: found type >> "Gtk_List_Store" defined at gtk-list_store.ads:139 >> >> Presumably, I've missed something in translation. > > See To_Interface function that does the conversion. > > [GTK interfaces are tagged Ada types. Since full MI is unfortunately not > supported in Ada, explicit conversion are are needed] Yes, that did the trick. Thank you.