summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-07-19 09:54:20 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2017-08-16 12:14:02 +0200
commitf667445ceb1e533a2b4bef67923ff702872a119b (patch)
treee4eee27a1f0bcc06a9175057525cf5965597d748
parent798d9e301d520b2a94cf0cf125ffa96e226e78b0 (diff)
gtk3: make video playback fill playback window
Change-Id: I43f2f77889856dc6a3b0c3a3775826dbb000be7a Reviewed-on: https://gerrit.libreoffice.org/40169 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit ed6c78abb8445cff51cc05118ce1f6311ed5a535) Reviewed-on: https://gerrit.libreoffice.org/40366 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
-rw-r--r--avmedia/source/gstreamer/gstplayer.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/avmedia/source/gstreamer/gstplayer.cxx b/avmedia/source/gstreamer/gstplayer.cxx
index 37b76626315b..00c66a8ef9fd 100644
--- a/avmedia/source/gstreamer/gstplayer.cxx
+++ b/avmedia/source/gstreamer/gstplayer.cxx
@@ -934,6 +934,8 @@ uno::Reference< ::media::XPlayerWindow > SAL_CALL Player::createPlayerWindow( co
{
mbUseGtkSink = true;
g_object_get(pVideosink, "widget", &mpGtkWidget, nullptr);
+ gtk_widget_set_vexpand(mpGtkWidget, true);
+ gtk_widget_set_hexpand(mpGtkWidget, true);
GtkWidget *pParent = static_cast<GtkWidget*>(pEnvData->pWidget);
gtk_container_add (GTK_CONTAINER(pParent), mpGtkWidget);