Files
MithicSpirit 0b2f112917 gtk: fix gtk-interface-color-scheme
Fixes an issue introduced in [1] where gtk4 apps would print the
following warning:

> Error setting gtk-interface-color-scheme in
> /home/mithic/.config/gtk-4.0/settings.ini: Key file contains key
> “gtk-interface-color-scheme” which has a value that cannot be
> interpreted.

The value should be set to the nickname ("light" or "dark" in this
case), rather than the actual numerical value of the enum.  This lookup
happens at [2].

These nicknames appear to be undocumented and automatically generated at
compile time, but in general they appear to follow the pattern where an
enum value FOO_BAR_BAZ_QUUX of the enum FOO_BAR has nickname "baz-quux".
Regardless, they can be looked up in the generated file
gtktypebuiltins.c (it unfortunately appears that nix only keeps
gtktypebuiltins.h, which does not contain the nicknames).

[1] https://github.com/nix-community/home-manager/pull/7763
[2] https://gitlab.gnome.org/GNOME/gtk/-/blob/4.22.4/gtk/gtksettings.c#L1863
2026-09-22 21:00:14 -05:00
..
2025-07-11 11:53:47 -05:00
2025-07-11 11:53:47 -05:00