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().
This commit is contained in:
Руслан Ижбулатов 2019-01-04 09:48:46 +00:00
parent 64ab82c403
commit 8da56cef79

View File

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