#undef GDK_DEPRECATED_FOR
#define GDK_DEPRECATED
#define GDK_DEPRECATED_FOR(f)
-#undef GTK_DISABLE_DEPRECATED
#include "deprecated/gtkrc.h"
if (g_strcmp0 (*immodules_list, SIMPLE_ID) == 0)
return SIMPLE_ID;
else
- {
- GtkIMModule *module;
- module = g_hash_table_lookup (contexts_hash, *immodules_list);
- if (module)
- return module->contexts[0]->context_id;
- }
+ {
+ gboolean found;
+ gchar *context_id;
+ found = g_hash_table_lookup_extended (contexts_hash, *immodules_list,
+ (gpointer *) &context_id, NULL);
+ if (found)
+ return context_id;
+ }
immodules_list++;
}