dbfb79d28dbabc52d83807db85e15349ebf747e5
[platform/upstream/ibus.git] / src / tests / ibus-proxy.c
1 /* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
2 #include "ibus.h"
3
4 static
5 _value_changed_cb (IBusConfig *config, gchar *section, gchar *name, GValue *value, gpointer data)
6 {
7     g_debug ("value-changed %s %s", section, name);
8 }
9
10 int main()
11 {
12     IBusBus *bus;
13     IBusConfig *config;
14
15     ibus_init ();
16
17     bus = ibus_bus_new ();
18     config = ibus_bus_get_config (bus);
19
20     g_signal_connect (config,
21                       "value-changed",
22                       G_CALLBACK (_value_changed_cb),
23                       NULL);
24     g_main_loop_run (g_main_loop_new (NULL, FALSE));
25
26     return 0;
27 }