summaryrefslogtreecommitdiffstats
path: root/src/test-proxy.c
diff options
context:
space:
mode:
authorHuang Peng <shawn.p.huang@gmail.com>2009-03-20 14:07:30 +0800
committerHuang Peng <shawn.p.huang@gmail.com>2009-03-20 14:07:30 +0800
commit0aa48a09c1ccca63e6909204e1ec673dff2341c2 (patch)
treef4e85128f8178761e28ce65f655e9ab477c153ac /src/test-proxy.c
parent1a76fee5d5c7926e0d4f54a5dbd34bff8007d062 (diff)
parentab417dd043ee6ba338518758c1c833f6ccbb7bdf (diff)
downloadibus-definite.tar.gz
ibus-definite.tar.xz
ibus-definite.zip
Merge commit 'origin/master' into definitedefinite
Conflicts: po/fr.po
Diffstat (limited to 'src/test-proxy.c')
-rw-r--r--src/test-proxy.c24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/test-proxy.c b/src/test-proxy.c
index 31866f1..aedd732 100644
--- a/src/test-proxy.c
+++ b/src/test-proxy.c
@@ -1,18 +1,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 ();
- IBusConnection *connection;
- IBusProxy *proxy;
+ IBusBus *bus;
+ IBusConfig *config;
+
+ bus = ibus_bus_new ();
+ config = ibus_bus_get_config (bus);
- connection = ibus_connection_new ();
- proxy = ibus_proxy_new ("a", "/a", connection);
- GValue value = {0};
- g_value_init (&value, G_TYPE_STRING);
- g_value_set_static_string (&value, "aaa");
- g_object_set_property (G_OBJECT (proxy), "name", &value);
+ g_signal_connect (config,
+ "value-changed",
+ G_CALLBACK (_value_changed_cb),
+ NULL);
+ g_main_loop_run (g_main_loop_new (NULL, FALSE));
return 0;
}