Permalink
Browse files

Call ibus_engine_update_preedit_text_with_mode in ibus_engine_update_…

…preedit_text
  • Loading branch information...
1 parent 8ee3864 commit 0211cdaa80721aac1aade8c76c90ace9c9ccce3d @phuang phuang committed Mar 16, 2010
Showing with 2 additions and 13 deletions.
  1. +2 −13 src/ibusengine.c
View
@@ -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

0 comments on commit 0211cda

Please sign in to comment.