Remove g_type_init() calls.
[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 #if !GLIB_CHECK_VERSION(2,35,0)
16         g_type_init ();
17 #endif
18
19         bus = ibus_bus_new ();
20         config = ibus_bus_get_config (bus);
21
22         g_signal_connect (config,
23                                           "value-changed",
24                                           G_CALLBACK (_value_changed_cb),
25                                           NULL);
26         g_main_loop_run (g_main_loop_new (NULL, FALSE));
27
28         return 0;
29 }