After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 768624 - GtkIMContextSimple is incompatible with X11 .XCompose
GtkIMContextSimple is incompatible with X11 .XCompose
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Input Methods
3.20.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-07-10 08:10 UTC by Konstantin Kharlamov
Modified: 2018-05-02 17:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
XCompose (81.49 KB, text/plain)
2016-07-10 08:10 UTC, Konstantin Kharlamov
Details
Errors list (12.48 KB, text/x-log)
2016-07-10 08:12 UTC, Konstantin Kharlamov
Details

Description Konstantin Kharlamov 2016-07-10 08:10:57 UTC
Created attachment 331152 [details]
XCompose

Since gtk-3.20 GtkIMContextSimple reads ~/.XCompose as well. Unfortunately it triggering many errors. I attached a sample .XCompose file, and the log I'm getting. FWIW the file is slightly modified version of this one https://github.com/kragen/xcompose/blob/master/dotXCompose which is quite popular as you can see.

How to reproduce:

α) Place the attached file to ~/.XCompose
β) Make sure that ~/.cache/gtk-3.0/compose/ is empty — .XCompose is being cached there
γ) Run a gtk-3.20 app with a textbox — it would output those errors into a terminal
Comment 1 Konstantin Kharlamov 2016-07-10 08:12:52 UTC
Created attachment 331153 [details]
Errors list
Comment 2 Konstantin Kharlamov 2016-07-10 08:15:26 UTC
Forgot to add: to reproduce one have to run an app with GTK_IM_MODULE=gtk-im-context-simple variable set, so that gtk-3.20 would use this input method.
Comment 3 Matthias Clasen 2016-07-13 02:53:34 UTC
If somebody wanted to work on this, the first step would be to enhance GtkIMContextSimple's table format to support generating multiple chars.
Comment 4 Matthias Clasen 2018-02-10 04:59:29 UTC
We're moving to gitlab! As part of this move, we are moving bugs to NEEDINFO if they haven't seen activity in more than a year. If this issue is still important to you and still relevant with GTK+ 3.22 or master, please reopen it and we will migrate it to gitlab.
Comment 5 Konstantin Kharlamov 2018-02-11 08:38:41 UTC
Still relevant with 3.22.26. I tested as part of bug https://bugzilla.gnome.org/show_bug.cgi?id=768412#c13 specifically, I removed immodule.cache, thus forcing gtk to bail out to gtk-im-context-simple, and tried a Compose shortcut for producing two characters. It didn't work.

Worth noting though that mentioned earlier method of setting GTK_IM_MODULE=gtk-im-context-simple for some reason have no effect.
Comment 6 Konstantin Kharlamov 2018-02-11 08:55:32 UTC
(In reply to hi-angel from comment #5)
> Worth noting though that mentioned earlier method of setting
> GTK_IM_MODULE=gtk-im-context-simple for some reason have no effect.

Nvm about this sentence — it's some odd behavior of gnome-terminal. If I make a dummy window with textbox on it, it is reproducible.
Comment 7 GNOME Infrastructure Team 2018-05-02 17:17:11 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/645.