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
This commit is contained in:
Bastien Nocera 2013-01-02 16:52:06 +01:00
parent 7e8f97760c
commit 45d4944b6d

View file

@ -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));