[cheese] Avoid gtk_main_quit warning on exit
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] Avoid gtk_main_quit warning on exit
- Date: Mon, 12 Mar 2012 20:12:12 +0000 (UTC)
commit 9628045226e055b8fbd809f7f814c3509df58f8d
Author: Bastien Nocera <hadess hadess net>
Date: Mon Mar 12 14:29:23 2012 +0100
Avoid gtk_main_quit warning on exit
When the last window is destroyed, GApplication will automatically exit
the main loop. Stops warnings like this on exit:
Gtk-CRITICAL **: gtk_main_quit: assertion `main_loops != NULL' failed
which occur with GTK+ versions 3.3.4 or greater, when GtkApplication was
changed to not override the GApplication mainloop.
https://bugzilla.gnome.org/show_bug.cgi?id=671904
src/cheese-main.vala | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/cheese-main.vala b/src/cheese-main.vala
index 961a0a2..fd5ad56 100644
--- a/src/cheese-main.vala
+++ b/src/cheese-main.vala
@@ -78,7 +78,6 @@ public class Cheese.Main : Gtk.Application
main_window.set_startup_fullscreen_mode ();
main_window.set_application (this);
- main_window.destroy.connect (Gtk.main_quit);
main_window.show ();
main_window.setup_camera (device);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]