From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michele Lindroos Newsgroups: gmane.lisp.guile.user Subject: Re: G-Golf - Help with ListView needed Date: Tue, 7 Mar 2023 20:55:02 +0200 Message-ID: References: <20230306010758.454a9bb1@aicha> <20230306190939.49a8085e@aicha> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19362"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Tue Mar 07 19:55:50 2023 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pZcTW-0004pU-02 for guile-user@m.gmane-mx.org; Tue, 07 Mar 2023 19:55:50 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZcT8-0005EN-AR; Tue, 07 Mar 2023 13:55:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZcT3-0005BK-9r for guile-user@gnu.org; Tue, 07 Mar 2023 13:55:23 -0500 Original-Received: from mail-vs1-xe29.google.com ([2607:f8b0:4864:20::e29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZcSz-0002tG-Cm for guile-user@gnu.org; Tue, 07 Mar 2023 13:55:19 -0500 Original-Received: by mail-vs1-xe29.google.com with SMTP id s1so13231804vsk.5 for ; Tue, 07 Mar 2023 10:55:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678215314; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=nT/RYp9skPfZQohkTmuAu4tYJW2uvCjcE5YqXJUyi3o=; b=aa9LzfJEvm7smnCl3X/2uIRUbwSK0OqHyvm2MinZ3m66DVD5HDf/7BquAX8uBju7xa 2BjSa5bYGU2IUNfd4cCjotAC7iWtYfflcCzKJNflLSefWO4YNKFjvGawrvQu8JccgnOJ /E3s0N2mZYHPCnc5/ZtLVMozZKpEfUR0Gwwy03M6YtlqPbzrl2BmCEdCh3bLfb8hXlcO B8gfGFEI8/kWE/6v0x1/C6Lp1sYN8q3N8ez6341dEx69YvYi0mZMhuJIN1XksAOhaPAK AbCw17/cTo+EBfpnjo7/5zjYODgmiPmW8xyXmWfaKuPqVkxHH0sLVTk/3BLfCOTTSQKN pSmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678215314; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nT/RYp9skPfZQohkTmuAu4tYJW2uvCjcE5YqXJUyi3o=; b=PhRpYOH+rSzR5Z7Jqmysoz7NlMmPEDKhx4WEqJcpFz62YX+JwNeX1l8hg/UMcQZhoV fBNng8qLGcVYXtlKgF8Vnu24pQVKaJGMW7i/mgnx4Kds7WzrI6pq8DE2EV6LusQC4a8L zdzGx6ziniH3AvUVBmG1UKSJEi6khkc60MliuEYyngq70vLZWg3fyXGLoXjuENKI77T0 HATqMbX2NpFgHte9YtTxkPHR5VPtVgjjVHimrRPq6QhFUXfczNsnV+Rzfna0Ip7ECAMt Lc/AOAzdhhIyC/mUCdfcX98Sikvv4PD0BJ3B9YRXnbsCa9R/ZNUMQSZprtCZwl9QhMma l9gA== X-Gm-Message-State: AO0yUKW37cWQghVYAGwTRrVLkyOVTgolA/vqPCVUHeA3gn66zj1yp7nZ Kk3GqmSn1sDukEE24CrCOac/l5iR5ACdKjVHjrSV0Yv3J1M= X-Google-Smtp-Source: AK7set9YvKSHCJhyThsQYM6FX+wBeVVLAeguAMgXIndD4kNvrsdW7tsWeTmM5sxqY1/sV65tD+s+ev6n4grpBjKJTdE= X-Received: by 2002:a67:ec4f:0:b0:402:9b84:1be4 with SMTP id z15-20020a67ec4f000000b004029b841be4mr10348755vso.6.1678215314106; Tue, 07 Mar 2023 10:55:14 -0800 (PST) In-Reply-To: <20230306190939.49a8085e@aicha> Received-SPF: pass client-ip=2607:f8b0:4864:20::e29; envelope-from=keelefi@gmail.com; helo=mail-vs1-xe29.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:18927 Archived-At: Hi David, > In this particular situation, the property exists since 4.10, but most > distributions still have 4.8.xx ... As soon as you have access to gtk > 4.10 or later, you may revert your code to use the prefered scheme > idiomatic way You are right, I'm linking against gtk-4 shipped by the distribution I'm using. In this case, I'm on Ubuntu 22.04 which, at the time of writing this email, ships gtk-4 version 4.6.6. This leads me to a few follow-up questions: 1) I did build G-Golf using automake which should figure out all versions of the libraries I'm linking against. Should an error have been raised when I called the incompatible constructor? Or maybe a print in the console log? 2) Assuming I want to write shippable code, is it possible to know which gtk-4 version is being used and which constructor to call? 3) Is gtk-string-list unique in this regard, or are there also other classes which need to be instantiated using the non-idiomatic way? Thanks a lot for all the help! BR, Michele