From 6ba40259a36abf1b1380921478b68e6dd4e2e8d9 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 15 Jan 2009 15:42:16 -0600 Subject: Adding a new function --- libindicate/listener.c | 10 +++++++++- libindicate/listener.h | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'libindicate') diff --git a/libindicate/listener.c b/libindicate/listener.c index a82f0f2..5f48ecf 100644 --- a/libindicate/listener.c +++ b/libindicate/listener.c @@ -157,6 +157,14 @@ indicate_listener_finalize (GObject * obj) return; } +IndicateListener * +indicate_listener_new (void) +{ + IndicateListener * listener; + listener = g_object_new(INDICATE_TYPE_LISTENER, NULL); + return listener; +} + static void dbus_owner_change (DBusGProxy * proxy, const gchar * name, const gchar * prev, const gchar * new, IndicateListener * listener) { @@ -207,7 +215,7 @@ build_todo_list_cb (DBusGProxy * proxy, char ** names, GError * error, void * da static void todo_list_add (const gchar * name, DBusGProxy * proxy, IndicateListener * listener) { - g_debug ("Adding %s"); + g_debug ("Adding %s", name); return; } diff --git a/libindicate/listener.h b/libindicate/listener.h index 8fc210f..f596494 100644 --- a/libindicate/listener.h +++ b/libindicate/listener.h @@ -52,7 +52,7 @@ struct _IndicateListenerClass { GType indicate_listener_get_type (void) G_GNUC_CONST; -/* Create a new server */ +/* Create a new listener */ IndicateListener * indicate_listener_new (void); -- cgit v1.2.3