diff --git a/examples/src/bin/gtkvideooverlay.rs b/examples/src/bin/gtkvideooverlay.rs index b7eaf0989..c6fd4a52a 100644 --- a/examples/src/bin/gtkvideooverlay.rs +++ b/examples/src/bin/gtkvideooverlay.rs @@ -219,7 +219,7 @@ fn create_ui(app: >k::Application) { }; match msg.view() { - MessageView::Eos(..) => gtk::main_quit(), + MessageView::Eos(..) => app.quit(), MessageView::Error(err) => { println!( "Error from {:?}: {} ({:?})",