diff --git a/demos/gtk-demo/widgetbowl.c b/demos/gtk-demo/widgetbowl.c index 572ceb3492..4def1b0e25 100644 --- a/demos/gtk-demo/widgetbowl.c +++ b/demos/gtk-demo/widgetbowl.c @@ -81,6 +81,18 @@ create_label (void) return w; } +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)); + gtk_media_stream_set_loop (stream, TRUE); + gtk_media_stream_play (stream); + g_object_unref (stream); + + return w; +} + static GtkWidget * create_gears (void) { @@ -102,6 +114,7 @@ static const struct { { "Label" , create_label }, { "Spinner" , create_spinner }, { "Spinbutton", create_spinbutton }, + { "Video", create_video }, { "Gears", create_gears }, };