[gtk+] wayland: Intern settings keys
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: Intern settings keys
- Date: Sat, 18 Nov 2017 03:58:25 +0000 (UTC)
commit 4dc4db56dc9a36a2daba90249f2f45256059c807
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Nov 17 22:47:49 2017 -0500
wayland: Intern settings keys
gdk/wayland/gdkdisplay-wayland.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c
index 950b0d5..39a365f 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]