From: Taha Aziz Ben Ali <ba.tahaaziz@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: luangruo@yahoo.com, 74383@debbugs.gnu.org
Subject: bug#74383: 29.4; Emacs PGTK crashes on Void Linux
Date: Sun, 17 Nov 2024 14:08:50 +0100 [thread overview]
Message-ID: <87bjye3t3x.fsf@gmail.com> (raw)
In-Reply-To: <86a5dyvxew.fsf@gnu.org>
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Taha Aziz Ben Ali <ba.tahaaziz@gmail.com>
>> 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?
next prev parent reply other threads:[~2024-11-17 13:08 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-16 12:42 bug#74383: 29.4; Emacs PGTK crashes on Void Linux Taha Aziz Ben Ali
2024-11-16 16:56 ` Eli Zaretskii
2024-11-16 18:01 ` Taha Aziz Ben Ali
2024-11-16 18:42 ` Eli Zaretskii
2024-11-16 20:15 ` Taha Aziz Ben Ali
2024-11-16 20:54 ` Eli Zaretskii
2024-11-16 21:21 ` Taha Aziz Ben Ali
2024-11-17 0:12 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-17 6:06 ` Eli Zaretskii
2024-11-17 9:51 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-17 10:48 ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-17 10:48 ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-17 11:40 ` Taha Aziz Ben Ali
2024-11-17 12:04 ` Eli Zaretskii
2024-11-17 12:23 ` Taha Aziz Ben Ali
2024-11-17 12:48 ` Eli Zaretskii
2024-11-17 13:08 ` Taha Aziz Ben Ali [this message]
2024-11-17 13:15 ` Taha Aziz Ben Ali
2024-11-17 13:24 ` Eli Zaretskii
2024-11-17 13:47 ` Eli Zaretskii
2024-11-17 14:07 ` Taha Aziz Ben Ali
2024-11-17 17:34 ` Taha Aziz Ben Ali
2024-11-17 17:40 ` Eli Zaretskii
2024-11-30 10:00 ` Eli Zaretskii
2024-12-14 9:37 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bjye3t3x.fsf@gmail.com \
--to=ba.tahaaziz@gmail.com \
--cc=74383@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=luangruo@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.