From d246abd08541cd566909bfd722fab4bd66bfd702 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 19 Aug 2018 09:25:38 +0200 Subject: [PATCH] fishbowl: Use a GtkPicture for videos --- demos/gtk-demo/fishbowl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/demos/gtk-demo/fishbowl.c b/demos/gtk-demo/fishbowl.c index 5c0272707d..af5a3ae8f9 100644 --- a/demos/gtk-demo/fishbowl.c +++ b/demos/gtk-demo/fishbowl.c @@ -134,7 +134,9 @@ static GtkWidget * create_video (void) { GtkMediaStream *stream = gtk_media_file_new_for_resource ("/images/gtk-logo.webm"); - GtkWidget *w = gtk_image_new_from_paintable (GDK_PAINTABLE (stream)); + GtkWidget *w = gtk_picture_new_for_paintable (GDK_PAINTABLE (stream)); + + gtk_widget_set_size_request (w, 64, 64); gtk_media_stream_set_loop (stream, TRUE); gtk_media_stream_play (stream); g_object_unref (stream);