[Uim] [PATCH] uim-gtk and Python programs

Matthew Reppert arashi at kai.vm.bytemark.co.uk
Thu Nov 4 23:19:37 EET 2004


Hi!

With uim 0.4.5 (as packaged in Debian), I can't use the GTK immodule
in pygtk programs like quodlibet. The program will issue errors like:

/usr/local/bin/quodlibet:729: GtkWarning:
 /usr/lib/gtk-2.0/2.4.0/immodules/im-uim.so: undefined symbol:
 gdk_input_remove
/usr/local/bin/quodlibet:729: GtkWarning: Loading IM context type
 'uim-anthy' failed

By explicitly linking the GTK immodule against GTK libraries at build
time, these errors go away, and I can use UIM in pygtk programs. The
attached patch makes this happen.

Thanks,
Matt


--- uim-0.4.5/gtk/Makefile.am	2004-11-04 15:03:24.000000000 -0600
+++ uim-mod/gtk/Makefile.am	2004-11-04 15:04:09.000000000 -0600
@@ -11,7 +11,7 @@
 
 
 im_uim_la_SOURCES = $(IM_UIM_SOURCES)
-im_uim_la_LDFLAGS = -module -avoid-version
+im_uim_la_LDFLAGS = -module -avoid-version @GTK2_LIBS@
 im_uim_la_LIBADD = $(top_builddir)/uim/libuim.la
 
 





More information about the uim mailing list