From 8b821e0cf350f79927864749d4ce87e3abef888e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 15 Jun 2015 21:24:01 +0200 Subject: gtk: Use the display width/height for the widget's preferred width/height --- ext/gtk/gtkgstwidget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/gtk/gtkgstwidget.c') diff --git a/ext/gtk/gtkgstwidget.c b/ext/gtk/gtkgstwidget.c index 023d3766a..36a787423 100644 --- a/ext/gtk/gtkgstwidget.c +++ b/ext/gtk/gtkgstwidget.c @@ -76,7 +76,7 @@ gtk_gst_widget_get_preferred_width (GtkWidget * widget, gint * min, gint * natural) { GtkGstWidget *gst_widget = (GtkGstWidget *) widget; - gint video_width = GST_VIDEO_INFO_WIDTH (&gst_widget->priv->v_info); + gint video_width = gst_widget->priv->display_width; if (!gst_widget->priv->negotiated) video_width = 10; @@ -92,7 +92,7 @@ gtk_gst_widget_get_preferred_height (GtkWidget * widget, gint * min, gint * natural) { GtkGstWidget *gst_widget = (GtkGstWidget *) widget; - gint video_height = GST_VIDEO_INFO_HEIGHT (&gst_widget->priv->v_info); + gint video_height = gst_widget->priv->display_height; if (!gst_widget->priv->negotiated) video_height = 10; -- cgit v1.2.1