From 0211cdaa80721aac1aade8c76c90ace9c9ccce3d Mon Sep 17 00:00:00 2001 From: Peng Huang Date: Tue, 16 Mar 2010 15:45:00 +0800 Subject: [PATCH] Call ibus_engine_update_preedit_text_with_mode in ibus_engine_update_preedit_text --- src/ibusengine.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/ibusengine.c b/src/ibusengine.c index 8ea25e10..c367f145 100644 --- a/src/ibusengine.c +++ b/src/ibusengine.c @@ -1041,19 +1041,8 @@ ibus_engine_update_preedit_text (IBusEngine *engine, guint cursor_pos, gboolean visible) { - guint mode = IBUS_ENGINE_PREEDIT_CLEAR; - - _send_signal (engine, - "UpdatePreeditText", - IBUS_TYPE_TEXT, &text, - G_TYPE_UINT, &cursor_pos, - G_TYPE_BOOLEAN, &visible, - G_TYPE_UINT, &mode, - G_TYPE_INVALID); - - if (g_object_is_floating (text)) { - g_object_unref (text); - } + ibus_engine_update_preedit_text_with_mode (engine, + text, cursor_pos, visible, IBUS_ENGINE_PREEDIT_CLEAR); } void -- 2.34.1