diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-05-29 15:09:35 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-05-29 15:09:35 +0200 |
commit | 122f428cfe103a36ffd72a54178b73ace42855c4 (patch) | |
tree | 4353a9693f519976fe27a023777c80142a5dab77 | |
parent | 87bf064d5f7a8d58724fb458c44ef1bb41b96fcc (diff) | |
download | telepathy-glib-122f428cfe103a36ffd72a54178b73ace42855c4.tar.gz |
media-observer: ref the channel before connecting the signal
g_object_ref() returns a gpointer so Tartan can't check if the signal we are
connecting to actually exists.
-rw-r--r-- | examples/client/media-observer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/client/media-observer.c b/examples/client/media-observer.c index 0fe95e53f..5e4300522 100644 --- a/examples/client/media-observer.c +++ b/examples/client/media-observer.c @@ -51,7 +51,9 @@ observe_channel_cb (TpSimpleObserver *self, requested? "to": "from", tp_channel_get_identifier (channel)); - g_signal_connect (g_object_ref (channel), "invalidated", + g_object_ref (channel); + + g_signal_connect (channel, "invalidated", G_CALLBACK (chan_invalidated_cb), NULL); tp_observe_channel_context_accept (context); |