aboutsummaryrefslogtreecommitdiff
path: root/libindicate
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-01-15 15:42:16 -0600
committerTed Gould <ted@canonical.com>2009-01-15 15:42:16 -0600
commit6ba40259a36abf1b1380921478b68e6dd4e2e8d9 (patch)
treed9ddd008b828b0ac16c27f7790b1ce2331fee080 /libindicate
parent441032cd3c150032bae9c7ec1c94fcacceee7c90 (diff)
downloadlibayatana-indicator-6ba40259a36abf1b1380921478b68e6dd4e2e8d9.tar.gz
libayatana-indicator-6ba40259a36abf1b1380921478b68e6dd4e2e8d9.tar.bz2
libayatana-indicator-6ba40259a36abf1b1380921478b68e6dd4e2e8d9.zip
Adding a new function
Diffstat (limited to 'libindicate')
-rw-r--r--libindicate/listener.c10
-rw-r--r--libindicate/listener.h2
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);