gtk/gdk/win32
Руслан Ижбулатов 66c0336ead GDK W32: Support switching IM contexts at runtime
This leverages the normal input context switching mechanism in GTK
by making it think that the gtk-im-module setting changed.
The backend returns gtk-im-module value as "ime" if W32
IME API says that an IME is in use. Otherwise it returns
and empty string - this still triggers an input context
switching code, which, not being able to create the desired context
(which is and empty string), falls back to looking at current
keyboard layout (currently that code is still a FIXME).

Paired with the code that signals gtk-im-module change on keyboard layout
switches, this is sufficient to make GTK capable of switching to
the appropriate IM context at runtime. At least, the kinds of context
that specify languages for which they are used automatically by default
(once locale matching is implemented), and the IME context.

Loading other kinds of IM context might still work via specifying
the gtk-im-module setting in gtk ini file, but doing so will likely
make GTK incapable of using the IME context that is used
for Korean, Chinese and Japanese (and some other languages).

Until someone figures out a way to actually change gtk-im-module
setting on Windows at runtime with meaningful values, the behaviour
introduced by this commit seems like a sufficient workaround.
2018-10-06 17:45:30 +00:00
..
rc Drop Autotools build 2017-08-14 22:23:09 +01:00
bdfcursor.c
cursor.bdf
gdkcairocontext-win32.c Fix gdk_win32_cairo_context_end_frame prototype 2018-06-10 21:21:02 +00:00
gdkcairocontext-win32.h GDK W32: Switch to GdkCairoContext 2018-04-24 23:24:55 +02:00
gdkclipboard-win32.c Remove some more unused variables 2018-06-10 21:21:06 +00:00
gdkclipboard-win32.h GDK W32: Another massive clipboard and DnD update 2018-03-29 17:43:53 +00:00
gdkclipdrop-win32.c win32: Adapt to dnd api changes 2018-07-02 22:52:59 +02:00
gdkclipdrop-win32.h GDK W32: Adapt to GdkDrop and GdkDragContext changes 2018-06-18 23:49:52 +02:00
gdkcursor-win32.c GDK W32: Fix a missing weak referencing 2018-04-11 16:39:34 +00:00
gdkdevice-virtual.c surface: Kill event masks 2018-06-18 23:49:52 +02:00
gdkdevice-virtual.h
gdkdevice-win32.c gdk: Remove GDK_SURFACE_FOREIGN 2018-06-26 00:47:40 +02:00
gdkdevice-win32.h GdkWindow -> GdkSurface initial type rename 2018-03-20 11:40:08 +01:00
gdkdevice-wintab.c surface: Kill event masks 2018-06-18 23:49:52 +02:00
gdkdevice-wintab.h GdkWindow -> GdkSurface initial type rename 2018-03-20 11:40:08 +01:00
gdkdevicemanager-win32.c surface: Kill event masks 2018-06-18 23:49:52 +02:00
gdkdevicemanager-win32.h GdkWindow -> GdkSurface initial type rename 2018-03-20 11:40:08 +01:00
gdkdisplay-win32.c Fix a missing default case warning 2018-06-10 21:21:10 +00:00
gdkdisplay-win32.h GDK W32: Use the new cursor class 2018-03-29 23:59:23 +00:00
gdkdisplaymanager-win32.c Remove unused functions in W32 backend 2018-06-10 21:21:09 +00:00
gdkdrag-win32.c win32: Stop accessing GdkDrag members 2018-07-15 16:58:22 -04:00
gdkdrop-win32.c win32: Adapt to dnd api changes 2018-07-02 22:52:59 +02:00
gdkevents-win32.c GDK W32: Support switching IM contexts at runtime 2018-10-06 17:45:30 +00:00
gdkgeometry-win32.c gdk: Remove GDK_SURFACE_FOREIGN 2018-06-26 00:47:40 +02:00
gdkglcontext-win32.c drawcontext: Only pass the region that matters 2018-04-24 23:16:58 +02:00
gdkglcontext-win32.h GdkWindow -> GdkSurface: File renames 2018-03-20 11:46:11 +01:00
gdkglobals-win32.c GDK W32: Another massive clipboard and DnD update 2018-03-29 17:43:53 +00:00
gdkhdataoutputstream-win32.c Use Unicode apostrophes in new strings 2018-09-20 19:01:14 +02:00
gdkhdataoutputstream-win32.h GDK W32: Another massive clipboard and DnD update 2018-03-29 17:43:53 +00:00
gdkkeys-win32.c GDK W32: drop the use of gdk_keymap_get_default() 2018-03-28 16:10:38 +08:00
gdkmain-win32.c dnd: Remove GDK_ACTION_DEFAULT and GDK_ACTION_PRIVATE 2018-06-18 23:49:19 +02:00
gdkmonitor-win32.c GdkSurface: Rename various functions and variables 2018-03-20 12:05:26 +01:00
gdkmonitor-win32.h win32: Port to new monitor api 2016-04-27 23:18:16 -04:00
gdkprivate-win32.h win32: Adapt to dnd api changes 2018-07-02 22:52:59 +02:00
gdkproperty-win32.c GDK W32: Support switching IM contexts at runtime 2018-10-06 17:45:30 +00:00
gdkscreen-win32.c Remove unused variables (mostly in W32 code) 2018-06-10 21:21:01 +00:00
gdksurface-win32.c Gdk-Win32: Correct handling of transient state changes 2018-07-31 11:11:26 +02:00
gdksurface-win32.h surface: Kill event masks 2018-06-18 23:49:52 +02:00
gdkvulkancontext-win32.c GdkSurface: Rename various functions and variables 2018-03-20 12:05:26 +01:00
gdkvulkancontext-win32.h The big versioning cleanup 2018-02-06 01:16:32 -05:00
gdkwin32.h GdkWindow -> GdkSurface: File renames 2018-03-20 11:46:11 +01:00
gdkwin32cursor.h GDK W32: New cursor class 2018-03-29 23:59:14 +00:00
gdkwin32display.h GDK W32: Use the new cursor class 2018-03-29 23:59:23 +00:00
gdkwin32displaymanager.h
gdkwin32dnd-private.h win32: Adapt to dnd api changes 2018-07-02 22:52:59 +02:00
gdkwin32dnd.h win32: Adapt to dnd api changes 2018-07-02 22:52:59 +02:00
gdkwin32glcontext.h The big versioning cleanup 2018-02-06 01:16:32 -05:00
gdkwin32id.c
gdkwin32keys.h The big versioning cleanup 2018-02-06 01:16:32 -05:00
gdkwin32misc.h GDK W32: Remove gdk_win32_surface_foreign_new_for_display 2018-06-18 23:49:53 +02:00
gdkwin32monitor.h The big versioning cleanup 2018-02-06 01:16:32 -05:00
gdkwin32screen.h win32: Make GdkWin32Screen a plain object 2017-11-17 13:47:14 -05:00
gdkwin32surface.h GdkWindow -> GdkSurface: File renames 2018-03-20 11:46:11 +01:00
libwntab32x.la
meson.build gdk: Add Cairo context implementations for all backends 2018-04-24 23:16:12 +02:00
pktdef.h
wintab.h
xcursors.h