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 693680 - wrong context id of module with multiple contexts
wrong context id of module with multiple contexts
Status: RESOLVED DUPLICATE of bug 690247
Product: gtk+
Classification: Platform
Component: Input Methods
3.6.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-02-12 22:01 UTC by Changwoo Ryu
Modified: 2013-02-13 02:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix immodule context ID lookup (711 bytes, patch)
2013-02-12 22:01 UTC, Changwoo Ryu
none Details | Review
better way to get the context ID than checking the whole contexts (711 bytes, patch)
2013-02-13 02:43 UTC, Changwoo Ryu
none Details | Review

Description Changwoo Ryu 2013-02-12 22:01:36 UTC
Created attachment 235820 [details] [review]
Fix immodule context ID lookup

When an immodule supports multiple contexts (imhangul, for example, http://code.google.com/p/imhangul/ ), GTK_IM_MODULE env variable setting doesn't work. It is always set as the first context of the module.

It looks like a trivial bug in gtk/gtkimmodule.c:lookup_immodule(). See the patch.
Comment 1 Changwoo Ryu 2013-02-13 02:37:25 UTC

*** This bug has been marked as a duplicate of bug 690247 ***
Comment 2 Changwoo Ryu 2013-02-13 02:43:04 UTC
Created attachment 235858 [details] [review]
better way to get the context ID than checking the whole contexts

Better patch from bug 693680, using g_hash_table_lookup_extended().
Comment 3 Changwoo Ryu 2013-02-13 02:45:21 UTC
Oops, submitted patch on old bug. Ignore it.