From 8da56cef7900f613248a82168af89ad35fbd0fd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Fri, 4 Jan 2019 09:48:46 +0000 Subject: [PATCH] GDK W32: Fix property setting to correctly use static strings The strings that are set are static, so g_value_set_static_string() should be used to set them instead of g_value_set_string(). --- gdk/win32/gdkproperty-win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdk/win32/gdkproperty-win32.c b/gdk/win32/gdkproperty-win32.c index 630d6ec356..d0bc65ff59 100644 --- a/gdk/win32/gdkproperty-win32.c +++ b/gdk/win32/gdkproperty-win32.c @@ -215,9 +215,9 @@ _gdk_win32_get_setting (const gchar *name, else if (strcmp ("gtk-im-module", name) == 0) { if (_gdk_input_locale_is_ime) - g_value_set_string (value, "ime"); + g_value_set_static_string (value, "ime"); else - g_value_set_string (value, ""); + g_value_set_static_string (value, ""); return TRUE; }