From 2e1a55118a559675f2e69f9930b5b0c05ab1cc3c 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 5891debeea..6d7ae3bb50 100644 --- a/gdk/win32/gdkproperty-win32.c +++ b/gdk/win32/gdkproperty-win32.c @@ -424,9 +424,9 @@ _gdk_win32_screen_get_setting (GdkScreen *screen, 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; }