Merge branch 'win32-runtime-immodule-swap-gtk4' into 'master'

GDK W32: Support switching IM contexts at runtime (GTK4)

See merge request GNOME/gtk!372
This commit is contained in:
LRN 2018-10-07 09:05:16 +00:00
commit 10fef2fbb4
2 changed files with 10 additions and 0 deletions

View File

@ -2124,6 +2124,7 @@ gdk_event_translate (MSG *msg,
(gulong) msg->wParam,
(gpointer) msg->lParam, _gdk_input_locale_is_ime ? " (IME)" : "",
_gdk_input_codepage));
gdk_display_setting_changed (display, "gtk-im-module");
break;
case WM_SYSKEYUP:

View File

@ -180,6 +180,15 @@ _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");
else
g_value_set_string (value, "");
return TRUE;
}
return FALSE;
}