mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-10 04:30:11 +00:00
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:
parent
3b244c9f11
commit
2e1a55118a
@ -424,9 +424,9 @@ _gdk_win32_screen_get_setting (GdkScreen *screen,
|
|||||||
else if (strcmp ("gtk-im-module", name) == 0)
|
else if (strcmp ("gtk-im-module", name) == 0)
|
||||||
{
|
{
|
||||||
if (_gdk_input_locale_is_ime)
|
if (_gdk_input_locale_is_ime)
|
||||||
g_value_set_string (value, "ime");
|
g_value_set_static_string (value, "ime");
|
||||||
else
|
else
|
||||||
g_value_set_string (value, "");
|
g_value_set_static_string (value, "");
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user