[empathy: 15/23] call-window: add getters for the UI manager and audio src



commit 58df02da291709b265717d8bf2d196e4345ea2ba
Author: Jonny Lamb <jonny lamb collabora co uk>
Date:   Thu Jul 28 12:38:26 2011 +0100

    call-window: add getters for the UI manager and audio src
    
    Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>

 src/empathy-call-window.c |   16 ++++++++++++++++
 src/empathy-call-window.h |    5 +++++
 2 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 3bd6d74..8407dc8 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 11237ff..357d6f1 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__*/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]