summaryrefslogtreecommitdiffstats
path: root/lua/test-lua-plugin.c
diff options
context:
space:
mode:
authorPeng Wu <epico@dhcp-65-116.nay.redhat.com>2010-04-11 15:29:11 +0800
committerPeng Wu <alexepico@gmail.com>2010-05-19 10:09:32 +0800
commit604d367fc223e142617b93f550dc7aa10f859848 (patch)
tree9a2af86b1619cfc1c0674c599f0ca21a54d3ef38 /lua/test-lua-plugin.c
parent25776642382b9e780e197b9f85aeb5aeb7852c7b (diff)
downloadibus-libpinyin-604d367fc223e142617b93f550dc7aa10f859848.tar.gz
ibus-libpinyin-604d367fc223e142617b93f550dc7aa10f859848.tar.xz
ibus-libpinyin-604d367fc223e142617b93f550dc7aa10f859848.zip
code cleanup.
Diffstat (limited to 'lua/test-lua-plugin.c')
-rw-r--r--lua/test-lua-plugin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/test-lua-plugin.c b/lua/test-lua-plugin.c
index c9a5f12..44e5586 100644
--- a/lua/test-lua-plugin.c
+++ b/lua/test-lua-plugin.c
@@ -35,6 +35,7 @@ static int run_test(lua_State *L, const char * filename){
int main(int argc, char * argv[]){
printf("starting test...\n");
+
g_type_init();
IBusEnginePlugin * plugin;
@@ -44,5 +45,6 @@ int main(int argc, char * argv[]){
run_test(L, "test.lua");
g_object_unref(plugin);
+
return 0;
}