mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
wayland: Intern settings keys
This commit is contained in:
parent
3b06ae5072
commit
4dc4db56dc
@ -1654,6 +1654,11 @@ init_settings (GdkDisplay *display)
|
||||
GSettings *settings;
|
||||
gint i;
|
||||
|
||||
g_intern_static_string ("antialiasing");
|
||||
g_intern_static_string ("hinting");
|
||||
g_intern_static_string ("rgba-order");
|
||||
g_intern_static_string ("text-scaling-factor");
|
||||
|
||||
display_wayland->settings = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, g_object_unref);
|
||||
|
||||
source = g_settings_schema_source_get_default ();
|
||||
@ -1666,6 +1671,8 @@ init_settings (GdkDisplay *display)
|
||||
if (!schema)
|
||||
continue;
|
||||
|
||||
g_intern_static_string (translations[i].key);
|
||||
|
||||
if (g_hash_table_lookup (display_wayland->settings, (gpointer)translations[i].schema) == NULL)
|
||||
{
|
||||
settings = g_settings_new_full (schema, NULL, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user