gdk/wayland: Look for font settings recursively
Use the infrastructure already available to look up keys, instead. This does the right thing and looks up the setting across all sources. Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3680
This commit is contained in:
@ -380,15 +380,11 @@ update_xft_settings (GdkScreen *screen)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
GSettingsSchemaSource *source;
|
TranslationEntry *entry;
|
||||||
GSettingsSchema *schema;
|
|
||||||
|
|
||||||
source = g_settings_schema_source_get_default ();
|
entry = find_translation_entry_by_schema ("org.gnome.desktop.interface", "font-antialiasing");
|
||||||
schema = g_settings_schema_source_lookup (source,
|
|
||||||
"org.gnome.desktop.interface",
|
|
||||||
FALSE);
|
|
||||||
|
|
||||||
if (schema && g_settings_schema_has_key (schema, "font-antialiasing"))
|
if (entry && entry->valid)
|
||||||
{
|
{
|
||||||
settings = g_hash_table_lookup (screen_wayland->settings,
|
settings = g_hash_table_lookup (screen_wayland->settings,
|
||||||
"org.gnome.desktop.interface");
|
"org.gnome.desktop.interface");
|
||||||
|
|||||||
Reference in New Issue
Block a user