diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-08-04 17:23:01 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-08-05 17:08:23 +0800 |
commit | a27087fda3a50d3454384bfa3664f79a17ac3f0a (patch) | |
tree | 3775d42a827774c98369a82cdc19690b8cf65192 /libempathy | |
parent | fd401e8a06921ead2aa06131afdd08ee46b9de92 (diff) | |
download | gsoc2013-empathy-a27087fda3a50d3454384bfa3664f79a17ac3f0a.tar gsoc2013-empathy-a27087fda3a50d3454384bfa3664f79a17ac3f0a.tar.gz gsoc2013-empathy-a27087fda3a50d3454384bfa3664f79a17ac3f0a.tar.bz2 gsoc2013-empathy-a27087fda3a50d3454384bfa3664f79a17ac3f0a.tar.lz gsoc2013-empathy-a27087fda3a50d3454384bfa3664f79a17ac3f0a.tar.xz gsoc2013-empathy-a27087fda3a50d3454384bfa3664f79a17ac3f0a.tar.zst gsoc2013-empathy-a27087fda3a50d3454384bfa3664f79a17ac3f0a.zip |
call-handler: add candidates-changed signal
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-call-handler.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libempathy/empathy-call-handler.c b/libempathy/empathy-call-handler.c index feb6793ca..b8e893486 100644 --- a/libempathy/empathy-call-handler.c +++ b/libempathy/empathy-call-handler.c @@ -44,6 +44,7 @@ enum { REQUEST_RESOURCE, CLOSED, STREAM_CLOSED, + CANDIDATES_CHANGED, LAST_SIGNAL }; @@ -373,6 +374,12 @@ empathy_call_handler_class_init (EmpathyCallHandlerClass *klass) G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TF_TYPE_STREAM); + + signals[CANDIDATES_CHANGED] = + g_signal_new ("candidates-changed", G_TYPE_FROM_CLASS (klass), + G_SIGNAL_RUN_LAST, 0, NULL, NULL, + g_cclosure_marshal_VOID__UINT, + G_TYPE_NONE, 1, G_TYPE_UINT); } /** @@ -490,6 +497,9 @@ update_candidates (EmpathyCallHandler *self, priv->audio_local_candidate = fs_candidate_copy (local_candidate); g_object_notify (G_OBJECT (self), "audio-local-candidate"); } + + g_signal_emit (G_OBJECT (self), signals[CANDIDATES_CHANGED], 0, + FS_MEDIA_TYPE_AUDIO); } else if (type == FS_MEDIA_TYPE_VIDEO) { @@ -506,6 +516,9 @@ update_candidates (EmpathyCallHandler *self, priv->video_local_candidate = fs_candidate_copy (local_candidate); g_object_notify (G_OBJECT (self), "video-local-candidate"); } + + g_signal_emit (G_OBJECT (self), signals[CANDIDATES_CHANGED], 0, + FS_MEDIA_TYPE_VIDEO); } g_object_unref (session); |