summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi Sumita <hsumita@chromium.org>2011-11-22 18:02:44 +0900
committerHiroshi Sumita <hsumita@chromium.org>2011-11-22 18:02:44 +0900
commitabf1fe97a38c06e6a05c112d9ac0a29264e96cf8 (patch)
tree1d2c22878b9894c010fab36b1699cee0e1a3ec72
parentc1b473396d5bef422ac5edce8c8ba6980112575b (diff)
downloadpyzy-abf1fe97a38c06e6a05c112d9ac0a29264e96cf8.tar.gz
Add API "focusCandidate(size_t i)".
BUG= None TEST= Build a package. Review URL: http://codereview.appspot.com/5375098
-rw-r--r--src/PyZyInputContext.h1
-rw-r--r--src/PyZyPhoneticContext.cc2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/PyZyInputContext.h b/src/PyZyInputContext.h
index 9270bf3..5187731 100644
--- a/src/PyZyInputContext.h
+++ b/src/PyZyInputContext.h
@@ -79,6 +79,7 @@ public:
virtual bool moveCursorToEnd (void) = 0;
virtual bool selectCandidate (size_t index) = 0;
+ virtual bool focusCandidate (size_t index) = 0;
virtual bool focusCandidatePrevious (void) = 0;
virtual bool focusCandidateNext (void) = 0;
virtual bool resetCandidate (size_t index) = 0;
diff --git a/src/PyZyPhoneticContext.cc b/src/PyZyPhoneticContext.cc
index b87931d..427e319 100644
--- a/src/PyZyPhoneticContext.cc
+++ b/src/PyZyPhoneticContext.cc
@@ -180,7 +180,7 @@ bool
PhoneticContext::selectCandidate (size_t i)
{
if (i >= m_candidates.size ()) {
- g_warning ("selectCandidate(%ud): Too big index!\n", i);
+ g_warning ("selectCandidate(%zd): Too big index!\n", i);
}
if (i < m_special_phrases.size ()) {