diff options
author | Ted Gould <ted@canonical.com> | 2009-01-15 15:42:16 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-01-15 15:42:16 -0600 |
commit | 6ba40259a36abf1b1380921478b68e6dd4e2e8d9 (patch) | |
tree | d9ddd008b828b0ac16c27f7790b1ce2331fee080 | |
parent | 441032cd3c150032bae9c7ec1c94fcacceee7c90 (diff) | |
download | libayatana-indicator-6ba40259a36abf1b1380921478b68e6dd4e2e8d9.tar.gz libayatana-indicator-6ba40259a36abf1b1380921478b68e6dd4e2e8d9.tar.bz2 libayatana-indicator-6ba40259a36abf1b1380921478b68e6dd4e2e8d9.zip |
Adding a new function
-rw-r--r-- | libindicate/listener.c | 10 | ||||
-rw-r--r-- | libindicate/listener.h | 2 |
2 files changed, 10 insertions, 2 deletions
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); |