From 4dc4db56dc9a36a2daba90249f2f45256059c807 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 17 Nov 2017 22:47:49 -0500 Subject: [PATCH] wayland: Intern settings keys --- gdk/wayland/gdkdisplay-wayland.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c index 950b0d5796..39a365f713 100644 --- a/gdk/wayland/gdkdisplay-wayland.c +++ b/gdk/wayland/gdkdisplay-wayland.c @@ -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);