From 0f92869a3be7b8561dc79cee97464db65b0efc55 Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Wed, 10 Oct 2012 20:55:53 -0300 Subject: gattrib: Add support for listening for events for specific handles We want only the profile that implements a service to be notified of changes on that service. Before this patch, all the registered event notifiers are being called. --- src/attrib-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/attrib-server.c b/src/attrib-server.c index 7117fbe2..ea27b137 100644 --- a/src/attrib-server.c +++ b/src/attrib-server.c @@ -1096,7 +1096,7 @@ guint attrib_channel_attach(GAttrib *attrib) channel->attrib = g_attrib_ref(attrib); channel->id = g_attrib_register(channel->attrib, GATTRIB_ALL_REQS, - channel_handler, channel, NULL); + GATTRIB_ALL_HANDLES, channel_handler, channel, NULL); channel->cleanup_id = g_io_add_watch(io, G_IO_HUP, channel_watch_cb, channel); -- cgit v1.2.3