From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Taha Aziz Ben Ali Newsgroups: gmane.emacs.bugs Subject: bug#74383: 29.4; Emacs PGTK crashes on Void Linux Date: Sun, 17 Nov 2024 14:08:50 +0100 Message-ID: <87bjye3t3x.fsf@gmail.com> References: <875xonl58g.fsf@gmail.com> <86r07bf77f.fsf@gnu.org> <87o72ehg5k.fsf@yahoo.com> <87plmu3x6e.fsf@gmail.com> <86bjyevzgv.fsf@gnu.org> <87mshy3v74.fsf@gmail.com> <86a5dyvxew.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25239"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 74383@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 17 14:11:26 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1tCf3l-0006Jy-Vk for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Nov 2024 14:11:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tCf3S-0002Fg-3m; Sun, 17 Nov 2024 08:11:06 -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 1tCf3P-0002F3-J6 for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2024 08:11:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tCf3P-0005Ql-AW for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2024 08:11:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=FxAxZoSp+36G53VKuRRYzDAM7aO+jdoJzFoyo3Lq/pM=; b=K/YCHUJfEZ0BOg+XjUdpCdm6zJvoL1cmRj4w64so86AvEFaqIOLzR9neqnt6cRtS7fbHgJJnCxHMDNl34y1xC7D9akrN+/AO3mIgCag76mQWjopsY3GIKSY14jL9ExFyohqxHA19hkqxqDNb+ihtCEzbvsfUCJxQ+SsqDvm9zndc/t/T5mKvLraDuyPqHOpA6Oucu6q08VJ6zzBGWZggT0aoTYZ/pSNsm9nBQ1SMjVcg6/GowxuaRaXQdGu0HWCk4fk6C+pW4bXSgpC1FvF+sy99/frEut+GSC/o7hYCBvVCOs3sDs+YQ2PdbdgPiBudaRJmkmC9/ZgQlco/WfyH9A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tCf3P-0000z4-4p for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2024 08:11:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Taha Aziz Ben Ali Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Nov 2024 13:11:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74383 X-GNU-PR-Package: emacs Original-Received: via spool by 74383-submit@debbugs.gnu.org id=B74383.17318490043367 (code B ref 74383); Sun, 17 Nov 2024 13:11:03 +0000 Original-Received: (at 74383) by debbugs.gnu.org; 17 Nov 2024 13:10:04 +0000 Original-Received: from localhost ([127.0.0.1]:56235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCf2R-0000ro-Ss for submit@debbugs.gnu.org; Sun, 17 Nov 2024 08:10:04 -0500 Original-Received: from mail-wm1-f44.google.com ([209.85.128.44]:49577) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCf2O-0000r2-FS for 74383@debbugs.gnu.org; Sun, 17 Nov 2024 08:10:02 -0500 Original-Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4316a44d1bbso17839565e9.3 for <74383@debbugs.gnu.org>; Sun, 17 Nov 2024 05:10:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731848939; x=1732453739; darn=debbugs.gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=FxAxZoSp+36G53VKuRRYzDAM7aO+jdoJzFoyo3Lq/pM=; b=QDMPB9IZUXaL2/brIxDQiu4u2a8zYMeyMw78ZsluK24FsWhcJDl+Bk7VPAkbxYZuvJ PkaeKzZQLmkkrz9MiIlEl24qXJqEK6OZQHY+oipnTetnmTdOLdioMY0uvOx4Bmxl5zGD IWjgDxaj1HVAqejVB/CFRs3dOD4Q6lHcoTvgL39bgiwIfFI1+khGtn7EPhQmYKE5t1a8 jCCdlA4gpgs71jOOIJC8EXX4ZQ47imhpdWkdeLcr14EIy6zYgWO1lEN4NwGVrScREaI4 1NsOedBwIPqh6xISDd/1Sot9cWkuRqtdE5qPpPOlpZSNhUS+9NXl3mEC7ykMe4uQXIL6 NX0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731848939; x=1732453739; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FxAxZoSp+36G53VKuRRYzDAM7aO+jdoJzFoyo3Lq/pM=; b=Q85LAKBiLTcY77NAVR/P6+yL7FhNkGTh2QCNN2bU1FegLEz1r1lnZVq+9uqCvMa5Kd ZQZWxjp51ZOrfzi9x+8x/6SOdaNngB2+ceiMq/scauL3C4D1fXqd5unILgqE9Nr/EokC 72KAEzyjKOu4HewP4IXyUtkMlsQvgFLsXlQ28xPjLCwVKlNkC9jrsFu5LlSHYO0Tar+1 Hyhtgp9w5c62tXpoAXfyYfRV8pCPW3hH25vflFF+Id5xawkKVf7iqufU56WtTsmy4C2R +887EPBKm86DmDJRMvAYgCab6cKhqgGKdYKl4XmRAwRvQhZEjowm/vmL5nro+TzXYwON 4q3g== X-Forwarded-Encrypted: i=1; AJvYcCWs5h3ShD2+yowhQggz0OnOz2pn+eazJjuwv4PK+l0K6+f7oQkA+xq4phyrjZaGeDS7vUaVrw==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yya7FeKGdLImfArMp7Le++TkUW0VhslfU+gGosovz/RFuJlMI5R b1S9r8cTd3T1gLHC9QD52CmFSaUD9UqIBYGbLJFdUMBCqtmJA7zg X-Google-Smtp-Source: AGHT+IHTKs0BBXiOXaCJ9Ev3xwbr3rX8FLiz1KWdADMk/bLcfz6wx+H64jeAF05o1aVyqkPlQLFXOA== X-Received: by 2002:a05:600c:1ca9:b0:431:5bf2:2d4 with SMTP id 5b1f17b1804b1-432df792cfdmr72665535e9.29.1731848939230; Sun, 17 Nov 2024 05:08:59 -0800 (PST) Original-Received: from localhost ([197.15.238.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432da280018sm123549965e9.26.2024.11.17.05.08.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Nov 2024 05:08:58 -0800 (PST) In-Reply-To: <86a5dyvxew.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:295524 Archived-At: Eli Zaretskii writes: >> From: Taha Aziz Ben Ali >> Cc: luangruo@yahoo.com, 74383@debbugs.gnu.org >> Date: Sun, 17 Nov 2024 13:23:43 +0100 >> >> I found this answer [3] which uses "gsettings" and as far as I know, >> settings changed through gsettings do not affect Emacs, so I have to >> create a stylesheet just as the manual says. >> >> Any pointers? > > See src/xsettings.c, I hope this is relevant to your case (but I know > nothing about GTK, so apologies if this makes no sense). It's very relevant and the source code is actually really insightful. Line 219: #ifdef HAVE_GSETTINGS #define GSETTINGS_SCHEMA "org.gnome.desktop.interface" #define GSETTINGS_TOOL_BAR_STYLE "toolbar-style" Well, according to `system-configuration-features', gsettings is configured: "ACL ... GSETTINGS HARFBUZZ ..." So GSETTINGS is indeed considered, let's see the value of my setting outside of Emacs: $ gsettings get org.gnome.desktop.interface toolbar-style => 'text' According to https://docs.gtk.org/gtk3/enum.ToolbarStyle.html, the "text" style corresponds to the value "1". Line 1080-1088: val = g_settings_get_value (gsettings_client, GSETTINGS_TOOL_BAR_STYLE); if (val) { g_variant_ref_sink (val); if (g_variant_is_of_type (val, G_VARIANT_TYPE_STRING)) current_tool_bar_style = map_tool_bar_style (g_variant_get_string (val, NULL)); g_variant_unref (val); } Okay, but `(tool-bar-get-system-style)' actually returns "image"... huh? Docstring says "image" is the fallback return value... Why is the mapping not being handled correctly?