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