diff options
author | Huang Peng <shawn.p.huang@gmail.com> | 2009-02-05 10:39:56 +0800 |
---|---|---|
committer | Huang Peng <shawn.p.huang@gmail.com> | 2009-02-05 10:39:56 +0800 |
commit | aedad1ea0a7fef604aa27f4b58433fd8f2ece29e (patch) | |
tree | ffcb531d8474bde18b90341bcd4eb639edd74525 /src/test-bus.c | |
parent | 41ad46305a88637dd99f00a2d2a3f455505d357b (diff) | |
download | ibus-aedad1ea0a7fef604aa27f4b58433fd8f2ece29e.tar.gz ibus-aedad1ea0a7fef604aa27f4b58433fd8f2ece29e.tar.xz ibus-aedad1ea0a7fef604aa27f4b58433fd8f2ece29e.zip |
re-implement ibus in c language.
Diffstat (limited to 'src/test-bus.c')
-rw-r--r-- | src/test-bus.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/test-bus.c b/src/test-bus.c new file mode 100644 index 0000000..a7756fa --- /dev/null +++ b/src/test-bus.c @@ -0,0 +1,22 @@ +#include "ibus.h" + +int main() +{ + g_type_init (); + + GMainLoop *mainloop; + IBusBus *bus; + IBusInputContext *context; + + mainloop = g_main_loop_new (NULL, FALSE); + bus = ibus_bus_new (); + context = ibus_bus_create_input_context (bus, "test"); + ibus_input_context_set_capabilities (context, 0); + ibus_input_context_destroy (context); + g_object_unref (context); + g_object_unref (bus); + + g_main_loop_run (mainloop); + + return 0; +} |