aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-call-window.c
diff options
context:
space:
mode:
authorJonny Lamb <jonnylamb@gnome.org>2011-08-01 20:48:32 +0800
committerJonny Lamb <jonnylamb@gnome.org>2011-08-01 20:48:32 +0800
commit7876debb7bc9b6232817e68f00eb2d7484fd034a (patch)
treebd4ca2a3e5416d8668dc04acba1ce85d13f2b340 /src/empathy-call-window.c
parent4651fb354e601f34dc9df08f2b506f765e455ead (diff)
parente17e6184ca30b2164e7b30d1a35f504b87973400 (diff)
downloadgsoc2013-empathy-7876debb7bc9b6232817e68f00eb2d7484fd034a.tar
gsoc2013-empathy-7876debb7bc9b6232817e68f00eb2d7484fd034a.tar.gz
gsoc2013-empathy-7876debb7bc9b6232817e68f00eb2d7484fd034a.tar.bz2
gsoc2013-empathy-7876debb7bc9b6232817e68f00eb2d7484fd034a.tar.lz
gsoc2013-empathy-7876debb7bc9b6232817e68f00eb2d7484fd034a.tar.xz
gsoc2013-empathy-7876debb7bc9b6232817e68f00eb2d7484fd034a.tar.zst
gsoc2013-empathy-7876debb7bc9b6232817e68f00eb2d7484fd034a.zip
Merge branch 'change-audio'
Conflicts: src/empathy-call-window.c src/empathy-call-window.ui Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r--src/empathy-call-window.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 29d3c4463..5ed4e93d3 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -61,6 +61,7 @@
#include "empathy-audio-src.h"
#include "empathy-audio-sink.h"
#include "empathy-video-src.h"
+#include "empathy-mic-menu.h"
#define CONTENT_HBOX_BORDER_WIDTH 6
#define CONTENT_HBOX_SPACING 3
@@ -212,6 +213,7 @@ struct _EmpathyCallWindowPriv
EmpathySoundManager *sound_mgr;
GSettings *settings;
+ EmpathyMicMenu *mic_menu;
};
#define GET_PRIV(o) (EMPATHY_CALL_WINDOW (o)->priv)
@@ -939,6 +941,7 @@ empathy_call_window_init (EmpathyCallWindow *self)
g_object_unref (gui);
priv->sound_mgr = empathy_sound_manager_dup_singleton ();
+ priv->mic_menu = empathy_mic_menu_new (self);
empathy_call_window_show_hangup_button (self, TRUE);
@@ -1473,6 +1476,8 @@ empathy_call_window_dispose (GObject *object)
tp_clear_object (&priv->sound_mgr);
+ tp_clear_object (&priv->mic_menu);
+
G_OBJECT_CLASS (empathy_call_window_parent_class)->dispose (object);
}
@@ -2964,3 +2969,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;
+}