From 17d0da719073d551493e0082797bdbea5775062f Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 13 Feb 2009 14:55:10 -0600 Subject: Adding in a set of functions to get the properties off of a server --- tests/listen-and-print.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests') 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 @@ -93,10 +93,24 @@ indicator_modified (IndicateListener * listener, IndicateListenerServer * server show_property(listener, server, indicator, property); } +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 -- cgit v1.2.3