wayland: Intern settings keys

This commit is contained in:
Matthias Clasen 2017-11-17 22:47:49 -05:00
parent 3b06ae5072
commit 4dc4db56dc

View File

@ -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);