immodule: Fix context ID lookup on module with multiple contexts

https://bugzilla.gnome.org/show_bug.cgi?id=690247
This commit is contained in:
Changwoo Ryu 2013-02-13 02:44:00 +00:00
parent 461c3835aa
commit b01f90b8d1

View File

@ -659,10 +659,12 @@ lookup_immodule (gchar **immodules_list)
return SIMPLE_ID; return SIMPLE_ID;
else else
{ {
GtkIMModule *module; gboolean found;
module = g_hash_table_lookup (contexts_hash, *immodules_list); gchar *context_id;
if (module) found = g_hash_table_lookup_extended (contexts_hash, *immodules_list,
return module->contexts[0]->context_id; &context_id, NULL);
if (found)
return context_id;
} }
immodules_list++; immodules_list++;
} }