aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-call-window.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-08-02 00:29:22 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-08-15 20:03:27 +0800
commitc9883b1b7038306e88877a4998226412c23ed55c (patch)
tree1741158b5d8a97ef203cad9ca6436bef4530d2ba /src/empathy-call-window.c
parentaed7faf9c81e1ca54398d16988b890322bf09889 (diff)
downloadgsoc2013-empathy-c9883b1b7038306e88877a4998226412c23ed55c.tar
gsoc2013-empathy-c9883b1b7038306e88877a4998226412c23ed55c.tar.gz
gsoc2013-empathy-c9883b1b7038306e88877a4998226412c23ed55c.tar.bz2
gsoc2013-empathy-c9883b1b7038306e88877a4998226412c23ed55c.tar.lz
gsoc2013-empathy-c9883b1b7038306e88877a4998226412c23ed55c.tar.xz
gsoc2013-empathy-c9883b1b7038306e88877a4998226412c23ed55c.tar.zst
gsoc2013-empathy-c9883b1b7038306e88877a4998226412c23ed55c.zip
CallWindow: add a menu to change the camera
https://bugzilla.gnome.org/show_bug.cgi?id=599167
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r--src/empathy-call-window.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index ce0483099..bf208d562 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -65,6 +65,7 @@
#include "empathy-mic-menu.h"
#include "empathy-preferences.h"
#include "empathy-rounded-actor.h"
+#include "empathy-camera-menu.h"
#define CONTENT_HBOX_BORDER_WIDTH 6
#define CONTENT_HBOX_SPACING 3
@@ -228,6 +229,7 @@ struct _EmpathyCallWindowPriv
GSettings *settings;
EmpathyMicMenu *mic_menu;
+ EmpathyCameraMenu *camera_menu;
};
#define GET_PRIV(o) (EMPATHY_CALL_WINDOW (o)->priv)
@@ -1094,6 +1096,7 @@ empathy_call_window_init (EmpathyCallWindow *self)
priv->sound_mgr = empathy_sound_manager_dup_singleton ();
priv->mic_menu = empathy_mic_menu_new (self);
+ priv->camera_menu = empathy_camera_menu_new (self);
empathy_call_window_show_hangup_button (self, TRUE);
@@ -1625,7 +1628,9 @@ empathy_call_window_dispose (GObject *object)
tp_clear_object (&priv->fullscreen);
tp_clear_object (&priv->camera_monitor);
tp_clear_object (&priv->settings);
- tp_clear_object (&priv->transitions);
+ tp_clear_object (&priv->sound_mgr);
+ tp_clear_object (&priv->mic_menu);
+ tp_clear_object (&priv->camera_menu);
g_list_free_full (priv->notifiers, g_object_unref);
@@ -1640,11 +1645,6 @@ empathy_call_window_dispose (GObject *object)
priv->contact = NULL;
}
-
- tp_clear_object (&priv->sound_mgr);
-
- tp_clear_object (&priv->mic_menu);
-
G_OBJECT_CLASS (empathy_call_window_parent_class)->dispose (object);
}
@@ -3170,3 +3170,9 @@ empathy_call_window_get_audio_src (EmpathyCallWindow *window)
return (EmpathyGstAudioSrc *) priv->audio_input;
}
+
+EmpathyGstVideoSrc *
+empathy_call_window_get_video_src (EmpathyCallWindow *self)
+{
+ return EMPATHY_GST_VIDEO_SRC (self->priv->video_input);
+}