summaryrefslogtreecommitdiffstats
path: root/src/test-proxy.c
blob: aedd732570484f9428b2ba29652ef8f172c43da1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "ibus.h"

static
_value_changed_cb (IBusConfig *config, gchar *section, gchar *name, GValue *value, gpointer data)
{
	g_debug ("value-changed %s %s", section, name);
}

int main()
{
	g_type_init ();

	IBusBus *bus;
	IBusConfig *config;

	bus = ibus_bus_new ();
	config = ibus_bus_get_config (bus);

	g_signal_connect (config,
					  "value-changed",
					  G_CALLBACK (_value_changed_cb),
					  NULL);
	g_main_loop_run (g_main_loop_new (NULL, FALSE));

	return 0;
}