aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-call-window.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-07-06 19:26:19 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-07-12 16:46:23 +0800
commit6aa94458db8c15961cb0a489cdde5ef59d6f6928 (patch)
treefe51ae44cb326a3b13594ac1aa64be5fea1174e3 /src/empathy-call-window.c
parent519ed53f758fdbcde07089275dfcb94e76f0aaf2 (diff)
downloadgsoc2013-empathy-6aa94458db8c15961cb0a489cdde5ef59d6f6928.tar
gsoc2013-empathy-6aa94458db8c15961cb0a489cdde5ef59d6f6928.tar.gz
gsoc2013-empathy-6aa94458db8c15961cb0a489cdde5ef59d6f6928.tar.bz2
gsoc2013-empathy-6aa94458db8c15961cb0a489cdde5ef59d6f6928.tar.lz
gsoc2013-empathy-6aa94458db8c15961cb0a489cdde5ef59d6f6928.tar.xz
gsoc2013-empathy-6aa94458db8c15961cb0a489cdde5ef59d6f6928.tar.zst
gsoc2013-empathy-6aa94458db8c15961cb0a489cdde5ef59d6f6928.zip
CallWindow: add a little offset to the video preview
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r--src/empathy-call-window.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 7d07aac04..ae28b8902 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -705,15 +705,25 @@ static void
create_video_preview (EmpathyCallWindow *self)
{
EmpathyCallWindowPriv *priv = GET_PRIV (self);
+ ClutterLayoutManager *layout;
+ ClutterActor *preview;
g_assert (priv->video_preview == NULL);
- priv->video_preview = clutter_texture_new ();
- clutter_actor_set_size (priv->video_preview,
+ preview = clutter_texture_new ();
+ clutter_actor_set_size (preview,
SELF_VIDEO_SECTION_WIDTH, SELF_VIDEO_SECTION_HEIGTH);
-
priv->video_preview_sink = clutter_gst_video_sink_new (
- CLUTTER_TEXTURE (priv->video_preview));
+ CLUTTER_TEXTURE (preview));
+
+ /* Add a little offset to the video preview */
+ layout = clutter_bin_layout_new (CLUTTER_BIN_ALIGNMENT_END,
+ CLUTTER_BIN_ALIGNMENT_START);
+ priv->video_preview = clutter_box_new (layout);
+ clutter_actor_set_size (priv->video_preview,
+ SELF_VIDEO_SECTION_WIDTH + 10, SELF_VIDEO_SECTION_HEIGTH + 10);
+ clutter_container_add_actor (CLUTTER_CONTAINER (priv->video_preview),
+ preview);
g_object_set (priv->video_preview_sink,
"sync", FALSE,