File scim-gtk2-register-fix.diff of Package scim
---
extras/gtk2_immodule/gtkimcontextscim.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
--- a/extras/gtk2_immodule/gtkimcontextscim.cpp
+++ b/extras/gtk2_immodule/gtkimcontextscim.cpp
@@ -450,13 +450,15 @@
SCIM_DEBUG_FRONTEND(1) << "gtk_im_context_scim_register_type...\n";
- if (!_gtk_type_im_context_scim) {
- _gtk_type_im_context_scim =
+ if (1 /*!_gtk_type_im_context_scim*/) {
+ GType type =
g_type_module_register_type (type_module,
GTK_TYPE_IM_CONTEXT,
"GtkIMContextSCIM",
&im_context_scim_info,
(GTypeFlags) 0);
+ if (type)
+ _gtk_type_im_context_scim = type;
}
}