examples: gtksink: use app.quit() to exit properly

We can't use gtk::main_quit() as the loop is handled by the
GtkApplication.
This commit is contained in:
Guillaume Desmottes 2021-05-22 17:36:31 +02:00
parent 1b1a4aa30b
commit 87fb66f283

View file

@ -114,7 +114,7 @@ fn create_ui(app: &gtk::Application) {
};
match msg.view() {
MessageView::Eos(..) => gtk::main_quit(),
MessageView::Eos(..) => app.quit(),
MessageView::Error(err) => {
println!(
"Error from {:?}: {} ({:?})",