From c1c06868e9ba54ae9edfed46f4c03dd22b7c3c57 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Sat, 22 May 2021 17:36:31 +0200 Subject: [PATCH] examples: gtkvideooverlay: use app.quit() to exit properly We can't use gtk::main_quit() as the loop is handled by the GtkApplication. --- examples/src/bin/gtkvideooverlay.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {:?}: {} ({:?})",