Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1325284rwb; Fri, 13 Jan 2023 10:39:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXtMP+pIS74genFiOT9gZQp48xEROmsXJ2+ZZjzufkj7MYJn8q9wtuf6OfT8U2L5/uwBvY8Z X-Received: by 2002:a05:6a20:1bc2:b0:ad:e765:9554 with SMTP id cv2-20020a056a201bc200b000ade7659554mr85035157pzb.55.1673635196175; Fri, 13 Jan 2023 10:39:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673635196; cv=none; d=google.com; s=arc-20160816; b=Rr+Y3+io8vY2UQ3XxfHj5Sy5+gNAo2xEg4AcI0QTfYNASPVzUyuqbVSvZkg3vULlCe gm8CmXToSgzgB4kWi3Ihr75bdyGKYksiYpvww8AvTGwe9jkXA8yB3Y6HilXPwNEhwq1S t13IybyfQ4keQ6aMKLDk4DQ2OKJQIh+LWNhBLFrYswY5Q7q6a+npbRqE1v1Eh8kvlFiM pQNbUepEBs8wfWUavzMQQJqeXhbh0z+nof/420SfB/j5OojQTxiy7ua6KQo6sn8zOE/7 fhTYkOTOVV7lXGiXsxzmlbftbVE7BT1/2m5GCYiqJsarfftlDwXZUKIbAuxYF+X1AHWx cp7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=gLi7SrRxd72+otZbUTjbUg7uuf8MJx+ZI492kphQBwo=; b=Os5tkAtKvIqDmeAVv+eBMld468VY/dJfK2EgMTvGAQbYjQYgLfmP6B6Heg5f4ZbsYu Qfc56r7rq459YzidXu0WMjVbJRk/M+/xZXfIBBBThHOwkXdBeHd4G2Xt0U0rGAm5masu h0nDKJcnpBlwdzjf/edAmpenoNXpMCvzuO7yuMlJV4ZV0DYHAzS0c2kWTW/6YnjlS69O m6ozBDSTqA3O/4uUjmGVxum6ro29Rib2+dJi0b6WRV8kzjPGifKQ0r6Jlb/lXNdH3V7B iTSyz8Bx4ugyBI88S2Qpw0qMpg3Q4Q0h+eS3AUFNSY/hkp5/b5/haokQzjxJj2HuCdiG yrbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=hY4kziJp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i10-20020a17090332ca00b00189758e2b8bsi22971980plr.618.2023.01.13.10.39.49; Fri, 13 Jan 2023 10:39:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=hY4kziJp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231229AbjAMS0X (ORCPT + 51 others); Fri, 13 Jan 2023 13:26:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230351AbjAMSZ6 (ORCPT ); Fri, 13 Jan 2023 13:25:58 -0500 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AAE07C3A3 for ; Fri, 13 Jan 2023 10:20:32 -0800 (PST) Received: by mail-wr1-x42e.google.com with SMTP id bs20so21843662wrb.3 for ; Fri, 13 Jan 2023 10:20:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gLi7SrRxd72+otZbUTjbUg7uuf8MJx+ZI492kphQBwo=; b=hY4kziJpfHy1vtOctv3NChToCMqUGXUqXbqg1OM2zJbgjkU9emQdpTP62JDCauia/A IuROxsHnRYFxtrk/PXbFmpm2T07FPetMaZW5YaGPsbyKRgFukO+s3rRLwu2aVd8p/YS2 9yr32r0a9yZ5hucuHXnVw1XZlmG0TyiXPqBxfySuwn+w1Lgl+RCv7ZSfMe7HPBUDJnZq rEKYrYwsm2P2/UqzOVVZ+prImY/JGu6JPSUAe/GKYZ5Br8mVsVWzfmLu8h/gBuNncurr 3MD5MIAMpTcg5+okW42KStYQYep4Siu3jB/OpDLDRP79cGMvxe5mgzbhKZjkpnyioQkM QNLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc: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=gLi7SrRxd72+otZbUTjbUg7uuf8MJx+ZI492kphQBwo=; b=efmBSPkHDwAa/wO27DRFAhSDNVDcXSg+6Uh4x9wD6Plprwgr8cAWr7yKWpxv0Ey+NM 3AjIOSJ452jvZAQeGEeSlX45o+JfA5sCFPwwnrRteIG9PWAdYSvMRcuOwmNSJPIty+/M FkS0zTXjgCnHI8M7wtHWE0qatNon0HP0VLUaN4Az2eWLCTHsO9jfIOvbFdE5IorttDMX GrP4n9OmeC2+6ZAMS6/nu38QHz/qoEI737O0Juq4FlqMuqqjkYeb8ZqPJmukkU1NiU6Y KdqMFYIdnPtG2M45/pSmd3fqRhsvyuA2L0P9dWVNrh2V+uCIg/aV2oZlC3pKothitQgk Og2A== X-Gm-Message-State: AFqh2krlzE6ibdWPz6TfAgWAmsKWjVl5+OF5fc4vNtqLQWD9DBeFbZQJ T8QPoPfp0UbwF0I9sklm9McqmP9FQcdiyGCyo8kr56ZG3HUvAw== X-Received: by 2002:a5d:6e0a:0:b0:242:5caa:5fbf with SMTP id h10-20020a5d6e0a000000b002425caa5fbfmr1594395wrz.300.1673634030510; Fri, 13 Jan 2023 10:20:30 -0800 (PST) MIME-Version: 1.0 References: <20220415050003.3257645-1-mattst88@gmail.com> <20221019232952.2212729-1-mattst88@gmail.com> In-Reply-To: From: Ian Rogers Date: Fri, 13 Jan 2023 10:20:18 -0800 Message-ID: Subject: Re: [PATCH v2] tools: port perf ui from GTK 2 to GTK 3 To: Matt Turner Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Jelle van der Waa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 13, 2023 at 9:53 AM Matt Turner wrote: > > On Fri, Dec 2, 2022 at 4:11 PM Matt Turner wrote: > > > > On Mon, Oct 31, 2022 at 10:02 AM Matt Turner wrote= : > > > > > > On Wed, Oct 19, 2022 at 7:30 PM Matt Turner wrot= e: > > > > > > > > From: Jelle van der Waa > > > > > > > > GTK 2 is a legacy API and the newer version is GTK 3 which changes = a few > > > > API functions. gtk_tree_view_set_rules_hint is no longer required s= ince > > > > theme's are now responsible to handle this, gtk_vbox_new is depreca= ted > > > > and replaced by passing the orientation to gtk_box_new. Apart from = these > > > > changes the accessing of the screen changed in GTK which requires u= sing > > > > new functions for getting geometry. Lastly the GTK_STOCK_OK define = is > > > > deprecated in GTK 3. > > > > > > > > Signed-off-by: Jelle van der Waa > > > > Signed-off-by: Matt Turner > > > > --- > > > > Originally sent in 2019. I've rebased it and given it a test. > > > > > > > > One problem I've noticed is that C++ symbol names are often broken. > > > > E.g.: > > > > > > > > (perf:3254940): Gtk-WARNING **: 21:47:46.663: Failed to set text fr= om > > > > markup due to error parsing markup: Error on line 1 char 95: > > > > =E2=80=9Cstd::char_traits > > > > > > > Presumably we need to call g_markup_escape_text() somewhere, but I > > > > struggled to find the right place. > > > > > > > > Without the patch, the GTK-2 version repeatedly segfaults, so this = is an > > > > improvement regardless. > > > > > > > > v2: Dropped changes to test-all.c. I don't know how to build that > > > > apparently. > > > > > > > > > Arnaldo, does this work better for you? > > > > Ping=C2=B2 > > Ping=C2=B3 Hi Matt, did you see Namhyung's comment? It looks possible that we can drop the infobar feature check for GTK3, which would help simplify the builds. It seems to make sense to fold that into this change, or to have it as a patch on top of this. Wdyt? Thanks, Ian