[gnome-control-center] user-accounts: Fix crash when built with cheese support



commit 45d4944b6db031dbc77e515bdae0fac9dbdba50f
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jan 2 16:52:06 2013 +0100

    user-accounts: Fix crash when built with cheese support
    
    The cheese support needs clutter, GStreamer and clutter-gst initialised.
    Call cheese_gtk_init() for that.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=690760

 shell/control-center.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/shell/control-center.c b/shell/control-center.c
index fc3e576..607ccc6 100644
--- a/shell/control-center.c
+++ b/shell/control-center.c
@@ -35,6 +35,10 @@
 #include <X11/Xlib.h>
 #endif
 
+#ifdef HAVE_CHEESE
+#include <cheese-gtk.h>
+#endif /* HAVE_CHEESE */
+
 #include "cc-shell-log.h"
 
 G_GNUC_NORETURN static gboolean
@@ -117,6 +121,10 @@ application_command_line_cb (GApplication  *application,
 
   g_option_context_free (context);
 
+#ifdef HAVE_CHEESE
+  cheese_gtk_init (&argc, &argv);
+#endif /* HAVE_CHEESE */
+
   cc_shell_log_set_debug (verbose);
 
   gnome_control_center_show (shell, GTK_APPLICATION (application));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]