Hello community,

here is the log from the commit of package fcitx-m17n for openSUSE:Factory 
checked in at 2014-06-10 14:38:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/fcitx-m17n (Old)
 and      /work/SRC/openSUSE:Factory/.fcitx-m17n.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "fcitx-m17n"

Changes:
--------
--- /work/SRC/openSUSE:Factory/fcitx-m17n/fcitx-m17n.changes    2013-11-08 
08:34:51.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.fcitx-m17n.new/fcitx-m17n.changes       
2014-06-10 14:38:57.000000000 +0200
@@ -1,0 +2,6 @@
+Mon Jun  9 05:00:34 UTC 2014 - i...@marguerite.su
+
+- update version 0.2.3
+  * Fix github issue fcitx/fcitx#153
+
+-------------------------------------------------------------------

Old:
----
  fcitx-m17n-0.2.2.tar.xz

New:
----
  fcitx-m17n-0.2.3.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ fcitx-m17n.spec ++++++
--- /var/tmp/diff_new_pack.jo0XP4/_old  2014-06-10 14:38:58.000000000 +0200
+++ /var/tmp/diff_new_pack.jo0XP4/_new  2014-06-10 14:38:58.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package fcitx-m17n
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           fcitx-m17n
-Version:        0.2.2
+Version:        0.2.3
 Release:        0
 Summary:        M17N engine for fcitx
 License:        GPL-2.0+

++++++ fcitx-m17n-0.2.2.tar.xz -> fcitx-m17n-0.2.3.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/fcitx-m17n-0.2.2/CMakeLists.txt 
new/fcitx-m17n-0.2.3/CMakeLists.txt
--- old/fcitx-m17n-0.2.2/CMakeLists.txt 2013-11-03 12:33:26.000000000 +0100
+++ new/fcitx-m17n-0.2.3/CMakeLists.txt 2014-05-13 06:09:58.000000000 +0200
@@ -5,7 +5,7 @@
 set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
 
 find_package(M17N REQUIRED)
-find_package(Fcitx 4.2.7 REQUIRED)
+find_package(Fcitx 4.2.8 REQUIRED)
 
 option(ENABLE_TEST "standalone test program" Off)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/fcitx-m17n-0.2.2/im/fcitx-m17n.c 
new/fcitx-m17n-0.2.3/im/fcitx-m17n.c
--- old/fcitx-m17n-0.2.2/im/fcitx-m17n.c        2013-11-03 12:33:26.000000000 
+0100
+++ new/fcitx-m17n-0.2.3/im/fcitx-m17n.c        2014-05-13 06:09:58.000000000 
+0200
@@ -62,6 +62,7 @@
 static INPUT_RETURN_VALUE FcitxM17NGetCandWords(void *arg);
 static void               FcitxM17NReload(void *arg);
 static void               FcitxM17NSave(void *arg);
+static void               FcitxM17NOnClose(void* arg, FcitxIMCloseEventType 
event);
 static IM*                FcitxM17NMakeIM(Addon* owner, MSymbol mlang, MSymbol 
mname);
 static void               FcitxM17NDelIM(IM* im);
 
@@ -600,6 +601,7 @@
         iface.Save = FcitxM17NSave;
         iface.ReloadConfig = FcitxM17NReload;
         iface.GetCandWords = FcitxM17NGetCandWords;
+        iface.OnClose = FcitxM17NOnClose;
 
         int priority = 100;
         if (item && strncmp(curlang, lang, 2) == 0 && item->priority > 0)
@@ -741,3 +743,15 @@
             FcitxInstanceDeleteSurroundingText (im->owner->owner, ic, 0, -len);
     }
 }
+
+void FcitxM17NOnClose(void* arg, FcitxIMCloseEventType event)
+{
+    IM* im = (IM*) arg;
+    if (event == CET_ChangeByInactivate || event == CET_SwitchIM) {
+        if (im->owner->mic->preedit) {
+            char* preedit = MTextToUTF8(im->owner->mic->preedit);
+            FcitxInstanceCommitString(im->owner->owner, 
FcitxInstanceGetCurrentIC(im->owner->owner), preedit);
+            free(preedit);
+        }
+    }
+}

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to