[empathy] CallWindow: keep the aspect ratio of the remote video
- From: Emilio Pozuelo Monfort <epm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] CallWindow: keep the aspect ratio of the remote video
- Date: Tue, 12 Jul 2011 08:51:24 +0000 (UTC)
commit 8dfbb6d5db069cd31e5c5223b0dee5841b1845fe
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Wed Jul 6 10:31:01 2011 +0100
CallWindow: keep the aspect ratio of the remote video
src/empathy-call-window.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index a7d177a..07a8404 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -622,6 +622,9 @@ create_video_output_widget (EmpathyCallWindow *self)
priv->video_output = clutter_texture_new ();
+ clutter_texture_set_keep_aspect_ratio (CLUTTER_TEXTURE (priv->video_output),
+ TRUE);
+
priv->video_output_sink = clutter_gst_video_sink_new (
CLUTTER_TEXTURE (priv->video_output));
@@ -1006,7 +1009,6 @@ create_pipeline (EmpathyCallWindow *self)
g_object_unref (bus);
}
-
static void
empathy_call_window_init (EmpathyCallWindow *self)
{
@@ -1083,8 +1085,8 @@ empathy_call_window_init (EmpathyCallWindow *self)
gtk_paned_pack1 (GTK_PANED (priv->pane), priv->content_hbox, TRUE, FALSE);
/* avatar/video box */
- priv->video_layout = clutter_bin_layout_new (CLUTTER_BIN_ALIGNMENT_FILL,
- CLUTTER_BIN_ALIGNMENT_FILL);
+ priv->video_layout = clutter_bin_layout_new (CLUTTER_BIN_ALIGNMENT_CENTER,
+ CLUTTER_BIN_ALIGNMENT_CENTER);
priv->video_box = clutter_box_new (priv->video_layout);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]