unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 0/2] Fix IBus input methods.
@ 2016-08-24 22:09 Ricardo Wurmus
  2016-08-24 22:09 ` [PATCH 1/2] gnu: gtk+-2: Add patch to support GUIX_GTK2_IM_MODULE_FILE Ricardo Wurmus
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Ricardo Wurmus @ 2016-08-24 22:09 UTC (permalink / raw)
  To: guix-devel

Hi Guix,

with these patches different versions of GTK+ can be given different input
method module caches.

Currently, the problem with additional GTK input methods (such as IBus) is
that to make them visible you need to generate a cache file and point to it
with GTK_IM_MODULE_FILE.  Since this variable is respected by both major
versions of GTK+ (and the cache file doesn't allow specification of input
method modules for specific versions of GTK+) incompatible input method
modules will be loaded, which results in crashes.

By splitting GTK_IM_MODULE_FILE into GUIX_GTK2_IM_MODULE_FILE and
GUIX_GTK3_IM_MODULE_FILE we can bypass this problem as GTK+ applications will
only load modules compatible with their major version.

I've tested this by generating two cache files for both versions with
"gtk-query-immodules-2.0" and "gtk-query-immodules-3.0" and setting the
variables.  This allows me to use IBus libpinyin in all (tested) GTK
applications.

What doesn't yet work is IBus input methods using the simple engine, such as
Arabic, but this seems unrelated.

~~ Ricardo


Ricardo Wurmus (2):
  gnu: gtk+-2: Add patch to support GUIX_GTK2_IM_MODULE_FILE.
  gnu: gtk+: Add patch to support GUIX_GTK3_IM_MODULE_FILE.

 gnu/local.mk                                              |  2 ++
 gnu/packages/gtk.scm                                      |  4 +++-
 .../patches/gtk2-respect-GUIX_GTK2_IM_MODULE_FILE.patch   | 15 +++++++++++++++
 .../patches/gtk3-respect-GUIX_GTK3_IM_MODULE_FILE.patch   | 15 +++++++++++++++
 4 files changed, 35 insertions(+), 1 deletion(-)
 create mode 100644 gnu/packages/patches/gtk2-respect-GUIX_GTK2_IM_MODULE_FILE.patch
 create mode 100644 gnu/packages/patches/gtk3-respect-GUIX_GTK3_IM_MODULE_FILE.patch

-- 
2.9.2

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-11-18 21:29 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-24 22:09 [PATCH 0/2] Fix IBus input methods Ricardo Wurmus
2016-08-24 22:09 ` [PATCH 1/2] gnu: gtk+-2: Add patch to support GUIX_GTK2_IM_MODULE_FILE Ricardo Wurmus
2016-08-24 22:09 ` [PATCH 2/2] gnu: gtk+: Add patch to support GUIX_GTK3_IM_MODULE_FILE Ricardo Wurmus
2016-08-25  9:15 ` [PATCH 0/2] Fix IBus input methods Ricardo Wurmus
2016-08-25 11:06 ` 宋文武
2016-08-25 11:52   ` Ricardo Wurmus
2016-09-02 13:15     ` Ludovic Courtès
2016-09-02 14:19       ` Ricardo Wurmus
2016-09-03 13:54         ` Ludovic Courtès
2016-09-04  6:42           ` Ricardo Wurmus
2016-11-18 10:37 ` Chris Marusich
2016-11-18 21:28   ` Ricardo Wurmus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).