aboutsummaryrefslogtreecommitdiff
path: root/libindicate
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-01-26 09:13:27 -0600
committerTed Gould <ted@canonical.com>2009-01-26 09:13:27 -0600
commitb96eebb512beb2c82da1fcb9922300a8da10a8bb (patch)
tree4775b27df25ab05379c0d3d7c5e24264143759e4 /libindicate
parent0fc106dd6a5081d3769668249556766e15c07c71 (diff)
downloadlibayatana-indicator-b96eebb512beb2c82da1fcb9922300a8da10a8bb.tar.gz
libayatana-indicator-b96eebb512beb2c82da1fcb9922300a8da10a8bb.tar.bz2
libayatana-indicator-b96eebb512beb2c82da1fcb9922300a8da10a8bb.zip
Changed to only listen to reference names instead of descriptive
ones. Hopefully this'll fix a crash.
Diffstat (limited to 'libindicate')
-rw-r--r--libindicate/listener.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libindicate/listener.c b/libindicate/listener.c
index 7510c49..78a85eb 100644
--- a/libindicate/listener.c
+++ b/libindicate/listener.c
@@ -292,6 +292,10 @@ build_todo_list_cb (DBusGProxy * proxy, char ** names, GError * error, void * da
static void
todo_list_add (const gchar * name, DBusGProxy * proxy, IndicateListener * listener)
{
+ if (name == NULL || name[0] != ':') {
+ return;
+ }
+
DBusGConnection * bus;
gchar * bus_name;
if (proxy == listener->dbus_proxy_system) {