aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2011-07-28 19:38:26 +0800
committerJonny Lamb <jonny.lamb@collabora.co.uk>2011-07-29 18:02:08 +0800
commit58df02da291709b265717d8bf2d196e4345ea2ba (patch)
treed9b1d02b174cff7981f241851407c04857fbd500
parent0bc0f8fca1696826af50b21c7339164c61d55764 (diff)
downloadgsoc2013-empathy-58df02da291709b265717d8bf2d196e4345ea2ba.tar
gsoc2013-empathy-58df02da291709b265717d8bf2d196e4345ea2ba.tar.gz
gsoc2013-empathy-58df02da291709b265717d8bf2d196e4345ea2ba.tar.bz2
gsoc2013-empathy-58df02da291709b265717d8bf2d196e4345ea2ba.tar.lz
gsoc2013-empathy-58df02da291709b265717d8bf2d196e4345ea2ba.tar.xz
gsoc2013-empathy-58df02da291709b265717d8bf2d196e4345ea2ba.tar.zst
gsoc2013-empathy-58df02da291709b265717d8bf2d196e4345ea2ba.zip
call-window: add getters for the UI manager and audio src
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r--src/empathy-call-window.c16
-rw-r--r--src/empathy-call-window.h5
2 files changed, 21 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 3bd6d746d..8407dc852 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -3257,3 +3257,19 @@ empathy_call_window_volume_changed_cb (GtkScaleButton *button,
empathy_audio_sink_set_volume (EMPATHY_GST_AUDIO_SINK (priv->audio_output),
value);
}
+
+GtkUIManager *
+empathy_call_window_get_ui_manager (EmpathyCallWindow *window)
+{
+ EmpathyCallWindowPriv *priv = GET_PRIV (window);
+
+ return priv->ui_manager;
+}
+
+EmpathyGstAudioSrc *
+empathy_call_window_get_audio_src (EmpathyCallWindow *window)
+{
+ EmpathyCallWindowPriv *priv = GET_PRIV (window);
+
+ return (EmpathyGstAudioSrc *) priv->audio_input;
+}
diff --git a/src/empathy-call-window.h b/src/empathy-call-window.h
index 11237fff6..357d6f160 100644
--- a/src/empathy-call-window.h
+++ b/src/empathy-call-window.h
@@ -25,6 +25,7 @@
#include <gtk/gtk.h>
#include "empathy-call-handler.h"
+#include "empathy-audio-src.h"
G_BEGIN_DECLS
@@ -62,6 +63,10 @@ GType empathy_call_window_get_type (void);
EmpathyCallWindow *empathy_call_window_new (EmpathyCallHandler *handler);
+GtkUIManager *empathy_call_window_get_ui_manager (EmpathyCallWindow *window);
+
+EmpathyGstAudioSrc *empathy_call_window_get_audio_src (EmpathyCallWindow *window);
+
G_END_DECLS
#endif /* #ifndef __EMPATHY_CALL_WINDOW_H__*/