Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Call ibus_engine_update_preedit_text_with_mode in ibus_engine_update_…

…preedit_text
  • Loading branch information...
commit 0211cdaa80721aac1aade8c76c90ace9c9ccce3d 1 parent 8ee3864
@phuang phuang authored
Showing with 2 additions and 13 deletions.
  1. +2 −13 src/ibusengine.c
View
15 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
Please sign in to comment.
Something went wrong with that request. Please try again.