[Prime-cvs] CVS update: prime/uim

Back to archive index

Hiroyuki Komatsu komat****@users*****
2005年 3月 8日 (火) 20:51:05 JST


Index: prime/uim/ChangeLog
diff -u prime/uim/ChangeLog:1.2.2.1 prime/uim/ChangeLog:1.2.2.2
--- prime/uim/ChangeLog:1.2.2.1	Mon Mar  7 17:52:01 2005
+++ prime/uim/ChangeLog	Tue Mar  8 20:51:04 2005
@@ -1,3 +1,12 @@
+2005-03-08  Hiroyuki Komatsu  <komat****@taiya*****>
+
+	* prime.scm: 
+	- Fixed the bug that prime-set-candidate-index-handler does not commit
+	  the selected candidate.
+	  Thanks for the notice from Masaki Yatsu. 
+	- Added a new function prime-commit-segment-nth which commits
+	  the nth segment.
+
 2005-03-05  Hiroyuki Komatsu  <komat****@taiya*****>
 
 	* uim-prime 0.9.4:
Index: prime/uim/prime.scm
diff -u prime/uim/prime.scm:1.2.2.1 prime/uim/prime.scm:1.2.2.2
--- prime/uim/prime.scm:1.2.2.1	Mon Mar  7 17:52:01 2005
+++ prime/uim/prime.scm	Tue Mar  8 20:51:04 2005
@@ -1619,6 +1619,11 @@
 ;    (prime-engine-modify-commit (prime-context-session-default context))
     (prime-context-set-state! context 'prime-state-modifying)))
 
+(define prime-commit-segment-nth
+  (lambda (context selection-index)
+    (prime-segment-selection-move context selection-index)
+    (prime-commit-segment context)))
+
 (define prime-commit-candidate
   (lambda (context index-no)
     (prime-engine-conv-select (prime-context-session context) index-no)
@@ -2063,11 +2068,13 @@
 (define prime-set-candidate-index-handler
   (lambda (context selection-index)
     (print "prime-set-candidate-index-handler")
-    (if (= (prime-context-state context) 'prime-state-segment)
-	(prime-segment-selection-move context selection-index)
-	(prime-convert-selection-move context))
-    (prime-update context)
-    ))
+    (if (prime-context-session context)
+	(begin
+	  (if (= (prime-context-state context) 'prime-state-segment)
+	      (prime-commit-segment-nth context selection-index)
+	      (prime-commit-candidate context selection-index))
+	  (prime-update context)
+	  ))))
 
 (prime-configure-widgets)
 


Prime-cvs メーリングリストの案内
Back to archive index