diff options
| author | Peng Wu <epico@dhcp-65-116.nay.redhat.com> | 2010-04-11 15:29:11 +0800 |
|---|---|---|
| committer | Peng Wu <alexepico@gmail.com> | 2010-05-19 10:09:32 +0800 |
| commit | 604d367fc223e142617b93f550dc7aa10f859848 (patch) | |
| tree | 9a2af86b1619cfc1c0674c599f0ca21a54d3ef38 /lua | |
| parent | 25776642382b9e780e197b9f85aeb5aeb7852c7b (diff) | |
code cleanup.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lua-plugin.c | 10 | ||||
| -rw-r--r-- | lua/test-lua-plugin.c | 2 |
2 files changed, 2 insertions, 10 deletions
diff --git a/lua/lua-plugin.c b/lua/lua-plugin.c index d78fca9..7eb99d6 100644 --- a/lua/lua-plugin.c +++ b/lua/lua-plugin.c @@ -52,15 +52,6 @@ lua_plugin_fini(IBusEnginePluginPrivate * plugin){ } static void -ibus_engine_plugin_dispose (GObject *gobject) -{ - IBusEnginePlugin *self = IBUS_ENGINE_PLUGIN (gobject); - - /* Chain up to the parent class */ - G_OBJECT_CLASS (ibus_engine_plugin_parent_class)->dispose(gobject); -} - -static void ibus_engine_plugin_finalize (GObject *gobject) { IBusEnginePlugin *self = IBUS_ENGINE_PLUGIN (gobject); @@ -77,7 +68,6 @@ ibus_engine_plugin_class_init (IBusEnginePluginClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); - gobject_class->dispose = ibus_engine_plugin_dispose; gobject_class->finalize = ibus_engine_plugin_finalize; g_type_class_add_private (klass, sizeof (IBusEnginePluginPrivate)); 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; } |
