summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2012-03-12 14:29:23 +0100
committerDavid King <amigadave@amigadave.com>2012-03-12 20:11:58 +0000
commit9628045226e055b8fbd809f7f814c3509df58f8d (patch)
treecf7e358b2fd64adce265fb5c2d5782abb7da8374
parentc0a1f598fba78cd0fd1344ee356461b0e54e55ce (diff)
downloadcheese-9628045226e055b8fbd809f7f814c3509df58f8d.tar.gz
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
-rw-r--r--src/cheese-main.vala1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cheese-main.vala b/src/cheese-main.vala
index 961a0a23..fd5ad560 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);
}