aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-02-13 14:55:10 -0600
committerTed Gould <ted@canonical.com>2009-02-13 14:55:10 -0600
commit17d0da719073d551493e0082797bdbea5775062f (patch)
tree527d2fbee1bcd48f8e933d243c5f5a4e47fbea55 /tests
parent2c157aa63cbc5904ca8ae1481a705309be6b7ed2 (diff)
downloadlibayatana-indicator-17d0da719073d551493e0082797bdbea5775062f.tar.gz
libayatana-indicator-17d0da719073d551493e0082797bdbea5775062f.tar.bz2
libayatana-indicator-17d0da719073d551493e0082797bdbea5775062f.zip
Adding in a set of functions to get the properties off of a server
Diffstat (limited to 'tests')
-rw-r--r--tests/listen-and-print.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/listen-and-print.c b/tests/listen-and-print.c
index a4c8c25..2535160 100644
--- a/tests/listen-and-print.c
+++ b/tests/listen-and-print.c
@@ -94,9 +94,23 @@ indicator_modified (IndicateListener * listener, IndicateListenerServer * server
}
static void
+type_cb (IndicateListener * listener, IndicateListenerServer * server, gchar * value, gpointer data)
+{
+ g_debug("Indicator Server Type: %s %s", INDICATE_LISTENER_SERVER_DBUS_NAME(server), value);
+}
+
+static void
+desktop_cb (IndicateListener * listener, IndicateListenerServer * server, gchar * value, gpointer data)
+{
+ g_debug("Indicator Server Desktop: %s %s", INDICATE_LISTENER_SERVER_DBUS_NAME(server), value);
+}
+
+static void
server_added (IndicateListener * listener, IndicateListenerServer * server, gchar * type, gpointer data)
{
g_debug("Indicator Server Added: %s %s", INDICATE_LISTENER_SERVER_DBUS_NAME(server), type);
+ indicate_listener_server_get_type(listener, server, type_cb, NULL);
+ indicate_listener_server_get_desktop(listener, server, desktop_cb, NULL);
}
static void