aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-01-29 09:10:18 -0600
committerTed Gould <ted@canonical.com>2009-01-29 09:10:18 -0600
commitab78f47706b2cf9dd6256f1edf3d4ba4669dd39f (patch)
treece53842424c8f6fd27585d05c54a707a15dcfe63
parent63630dcba6ca194176a057a838a1e36e9df28cad (diff)
downloadlibayatana-indicator-ab78f47706b2cf9dd6256f1edf3d4ba4669dd39f.tar.gz
libayatana-indicator-ab78f47706b2cf9dd6256f1edf3d4ba4669dd39f.tar.bz2
libayatana-indicator-ab78f47706b2cf9dd6256f1edf3d4ba4669dd39f.zip
Use the new fangled defines to make things cleaner
-rw-r--r--tests/listen-and-print.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/listen-and-print.c b/tests/listen-and-print.c
index f99c07c..b12fd3d 100644
--- a/tests/listen-and-print.c
+++ b/tests/listen-and-print.c
@@ -5,31 +5,31 @@
static void
indicator_added (IndicateListener * listener, IndicateListenerServer * server, IndicateListenerIndicator * indicator, gchar * type, gpointer data)
{
- g_debug("Indicator Added: %s %d %s", (gchar *)server, (guint)indicator, type);
+ g_debug("Indicator Added: %s %d %s", INDICATE_LISTENER_SERVER_DBUS_NAME(server), INDICATE_LISTENER_INDICATOR_ID(indicator), type);
}
static void
indicator_removed (IndicateListener * listener, IndicateListenerServer * server, IndicateListenerIndicator * indicator, gchar * type, gpointer data)
{
- g_debug("Indicator Removed: %s %d %s", (gchar *)server, (guint)indicator, type);
+ g_debug("Indicator Removed: %s %d %s", INDICATE_LISTENER_SERVER_DBUS_NAME(server), INDICATE_LISTENER_INDICATOR_ID(indicator), type);
}
static void
indicator_modified (IndicateListener * listener, IndicateListenerServer * server, IndicateListenerIndicator * indicator, gchar * type, gchar * property, gpointer data)
{
- g_debug("Indicator Modified: %s %d %s %s", (gchar *)server, (guint)indicator, type, property);
+ g_debug("Indicator Modified: %s %d %s %s", INDICATE_LISTENER_SERVER_DBUS_NAME(server), INDICATE_LISTENER_INDICATOR_ID(indicator), type, property);
}
static void
server_added (IndicateListener * listener, IndicateListenerServer * server, gpointer data)
{
- g_debug("Indicator Server Added: %s", (gchar *)server);
+ g_debug("Indicator Server Added: %s", INDICATE_LISTENER_SERVER_DBUS_NAME(server));
}
static void
server_removed (IndicateListener * listener, IndicateListenerServer * server, gpointer data)
{
- g_debug("Indicator Server Removed: %s", (gchar *)server);
+ g_debug("Indicator Server Removed: %s", INDICATE_LISTENER_SERVER_DBUS_NAME(server));
}
int