diff options
author | Peng Wu <alexepico@gmail.com> | 2010-04-20 15:48:43 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2010-05-19 10:09:32 +0800 |
commit | 0ec7c3edfd6ec32aaf6cd37e745568a82bf9e565 (patch) | |
tree | c4298d627b7bb19bd4bea3b3b77794317a0a828e /lua/lua-plugin.c | |
parent | bdc0c91efa8dd6532ad550b46cf3a3756c7662dc (diff) | |
download | ibus-libpinyin-0ec7c3edfd6ec32aaf6cd37e745568a82bf9e565.tar.gz ibus-libpinyin-0ec7c3edfd6ec32aaf6cd37e745568a82bf9e565.tar.xz ibus-libpinyin-0ec7c3edfd6ec32aaf6cd37e745568a82bf9e565.zip |
add lua-ext-console.c
Diffstat (limited to 'lua/lua-plugin.c')
-rw-r--r-- | lua/lua-plugin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/lua-plugin.c b/lua/lua-plugin.c index d256fd1..5abe4d9 100644 --- a/lua/lua-plugin.c +++ b/lua/lua-plugin.c @@ -17,7 +17,7 @@ G_DEFINE_TYPE (IBusEnginePlugin, ibus_engine_plugin, G_TYPE_OBJECT); static void lua_command_clone(lua_command_t * command, lua_command_t * new_command){ new_command->command_name = g_strdup(command->command_name); - new_command->lua_function_name = g_strdup(command->command_name); + new_command->lua_function_name = g_strdup(command->lua_function_name); new_command->description = g_strdup(command->description); new_command->leading = g_strdup(command->leading); new_command->help = g_strdup(command->help); @@ -155,10 +155,10 @@ gboolean ibus_engine_plugin_add_command(IBusEnginePlugin * plugin, lua_command_t return TRUE; } -lua_command_t * ibus_engine_plugin_lookup_command(IBusEnginePlugin * plugin, const char * command){ +lua_command_t * ibus_engine_plugin_lookup_command(IBusEnginePlugin * plugin, const char * command_name){ IBusEnginePluginPrivate * priv = IBUS_ENGINE_PLUGIN_GET_PRIVATE(plugin); GArray * lua_commands = priv->lua_commands; - lua_command_t lookup_command = {.command_name = command, }; + lua_command_t lookup_command = {.command_name = command_name, }; lua_command_t * result = bsearch(&lookup_command, lua_commands->data, lua_commands->len, sizeof(lua_command_t), compare_command); return result; |