Refine inline document of ibus_engine_update_preedit_text_with_mode()
authorPeng Huang <shawn.p.huang@gmail.com>
Mon, 28 May 2012 01:45:58 +0000 (21:45 -0400)
committerPeng Huang <shawn.p.huang@gmail.com>
Mon, 28 May 2012 01:45:58 +0000 (21:45 -0400)
BUG=http://code.google.com/p/ibus/issues/detail?id=1045
TEST=None

Review URL: https://codereview.appspot.com/6249058

src/ibusengine.h

index d2d01a0..c12e254 100644 (file)
@@ -225,10 +225,14 @@ void         ibus_engine_update_preedit_text
  * @visible: Whether the pre-edit buffer is visible.
  * @mode: Pre-edit commit mode when the focus is lost.
  *
- * Update the pre-edit buffer with commit mode.
- * if mode is IBUS_ENGINE_PREEDIT_CLEAR,
- * ibus_engine_update_preedit_text_with_mode is compatible with
- * ibus_engine_update_preedit_text.
+ * Update the pre-edit buffer with commit mode. Similar to
+ * ibus_engine_update_preedit_text(), this function allows users to specify
+ * the behavior on focus out when the pre-edit buffer is visible.
+ *
+ * If @mode is IBUS_ENGINE_PREEDIT_COMMIT, contents of the pre-edit buffer
+ * will be comitted and cleared.
+ * If @mode is IBUS_ENGINE_PREEDIT_CLEAR, contents of the pre-edit buffer
+ * will be cleared only.
  *
  * (Note: The text object will be released, if it is floating.
  *  If caller want to keep the object, caller should make the object