summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2004-05-02 12:04:06 +0000
committerMamoru Komachi <usata@gentoo.org>2004-05-02 12:04:06 +0000
commit4ca7e146623fb0d6385b21d3db0f5b48c5a1c125 (patch)
tree4b99186543eeb00a4ab979343cdc80eca013ae56 /app-i18n/uim/files
parentAdded to ~ppc (diff)
downloadhistorical-4ca7e146623fb0d6385b21d3db0f5b48c5a1c125.tar.gz
historical-4ca7e146623fb0d6385b21d3db0f5b48c5a1c125.tar.bz2
historical-4ca7e146623fb0d6385b21d3db0f5b48c5a1c125.zip
Applied a patch to fix IM switch. Also, uim-0.3.5 requires >=app-i18n/prime-0.8 if you want to use PRIME
Diffstat (limited to 'app-i18n/uim/files')
-rw-r--r--app-i18n/uim/files/uim-0.3.5-engines.diff42
1 files changed, 42 insertions, 0 deletions
diff --git a/app-i18n/uim/files/uim-0.3.5-engines.diff b/app-i18n/uim/files/uim-0.3.5-engines.diff
new file mode 100644
index 000000000000..293d6004068b
--- /dev/null
+++ b/app-i18n/uim/files/uim-0.3.5-engines.diff
@@ -0,0 +1,42 @@
+--- uim-0.3.5.orig/uim/uim.c 2004-04-24 12:17:28.000000000 +0900
++++ uim-0.3.5/uim/uim.c 2004-05-02 16:34:30.000000000 +0900
+@@ -579,6 +579,11 @@
+ uim_quit(void)
+ {
+ int i;
++
++ if (!uim_initialized) {
++ return;
++ }
++
+ /* release still active contexts */
+ for (i = 0; i < CONTEXT_ARRAY_SIZE; i++) {
+ if (context_array[i]) {
+--- uim-0.3.5.orig/uim/canna.c 2004-04-18 12:15:01.000000000 +0900
++++ uim-0.3.5/uim/canna.c 2004-05-02 16:35:27.000000000 +0900
+@@ -474,16 +474,22 @@
+ void
+ uim_quit_canna(void)
+ {
+- if(cannaserver != NULL)
++ if(cannaserver != NULL) {
+ free(cannaserver);
++ cannaserver = NULL;
++ }
+
+ if(api.RkFinalize)
+ api.RkFinalize();
+
+- if(api.lib)
++ if(api.lib) {
+ dlclose(api.lib);
++ memset(&api, 0, sizeof(struct canna_api));
++ }
+
+- if(context_array != NULL)
++ if(context_array != NULL) {
+ free(context_array);
++ context_array = NULL;
++ }
+ }
+ #endif /* HAVE_CANNA_RK_H */